SHOW:
|
|
- or go back to the newest paste.
1 | #!/bin/bash | |
2 | - | killall letsencrypt |
2 | + | |
3 | sleep 5 | |
4 | ||
5 | DATE=$(date +"%Y-%m-%d %T") | |
6 | echo "$DATE LetsEncrypt Certificate renew" | |
7 | ||
8 | echo "Stopping NginX" | |
9 | systemctl stop nginx.service | |
10 | - | /usr/bin/gitlab-ctl stop nginx |
10 | + | |
11 | sleep 10 | |
12 | /opt/letsencrypt/letsencrypt-auto certonly --standalone --renew-by-default --email info@mydomain.sk --text --agree-tos -d proxmox.mydomain.sk | |
13 | - | /opt/letsencrypt/letsencrypt-auto certonly --standalone --renew-by-default --email info@mydomain.sk --text --agree-tos -d git.mydomain.sk -d wiki.mydomain.sk |
13 | + | |
14 | echo "Starting NginX" | |
15 | systemctl start nginx.service | |
16 | - | /usr/bin/gitlab-ctl start nginx |
16 | + | |
17 | exit | |
18 | ||
19 | #crontab -l : "0 0 1 * * /usr/local/bin/letsencrypt_renew >> /var/log/letsencrypt_renew.log 2>&1" |