no need for pre and post hooks as it's done when creating the cert (#358)
This commit is contained in:
Родитель
417ded1093
Коммит
fb6032559a
|
@ -48,7 +48,7 @@ add_crontab_le() {
|
|||
DATE='$(date +%Y-%m-%d_%H:%M)'
|
||||
cat << CRONTAB > "$SCRIPTS/letsencryptrenew.sh"
|
||||
#!/bin/sh
|
||||
if ! certbot renew --pre-hook "service apache2 stop" --post-hook "service apache2 start" --quiet --no-self-upgrade > /var/log/letsencrypt/renew.log 2>&1 ; then
|
||||
if ! certbot renew --quiet --no-self-upgrade > /var/log/letsencrypt/renew.log 2>&1 ; then
|
||||
echo "Let's Encrypt FAILED!"--$DATE >> /var/log/letsencrypt/cronjob.log
|
||||
else
|
||||
echo "Let's Encrypt SUCCESS!"--$DATE >> /var/log/letsencrypt/cronjob.log
|
||||
|
|
Загрузка…
Ссылка в новой задаче