Projekt

Obecné

Profil

Stáhnout (799 Bajtů) Statistiky
| Větev: | Revize:
1
#!/bin/bash
2
# Usage
3
# if you want create new license run: renew_certificate new
4
# if you want re-create the existing license run: renew_certificate
5

    
6
if [ "$1" = "new" ]; then
7
    docker-compose exec nginx /bin/sh -c "
8
    cd /root/.acme.sh; \
9
    bash acme.sh  --issue --nginx /etc/nginx/sites-available/default.conf -d heatmap.zcu.cz -d www.heatmap.zcu.cz --debug 2; \
10
    bash acme.sh --installcert -d heatmap.zcu.cz -d www.heatmap.zcu.cz\
11
    --key-file /root/.acme.sh/heatmap.zcu.cz/heatmap.zcu.cz.key \
12
    --fullchain-file /root/.acme.sh/heatmap.zcu.cz/fullchain.cer \
13
    --reloadcmd 'bash /etc/init.d/nginx reload';
14
    ";
15
else
16
    docker-compose exec nginx /bin/sh -c "cd /root/.acme.sh && bash acme.sh --issue --force -d heatmap.zcu.cz -d www.heatmap.zcu.cz -w /var/www/symfony/public"
17
fi
(5-5/6)