mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
no need for pre and post hooks as it's done when creating the cert (#358)
This commit is contained in:
parent
417ded1093
commit
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user