From fb6032559a1709dcc4cfc42fed7737feef098d0d Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Sat, 2 Sep 2017 13:02:08 +0200 Subject: [PATCH] no need for pre and post hooks as it's done when creating the cert (#358) --- lets-encrypt/test-new-config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lets-encrypt/test-new-config.sh b/lets-encrypt/test-new-config.sh index b50a60bf..2ad6032d 100644 --- a/lets-encrypt/test-new-config.sh +++ b/lets-encrypt/test-new-config.sh @@ -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