Update nodemgmt-scripts.sh

This commit is contained in:
2019-01-30 08:44:01 -06:00
parent 25eb197b80
commit 82b5dca92b

View File

@@ -87,11 +87,11 @@ case "$1" in
nightlyrenew)
rm -f /opt/idssys/nodemgmt/cert-renewal.lastrun
do_with_root $CERT_DAEMON renew --webroot -w /var/www/html >> /opt/idssys/nodemgmt/cert-renewal.lastrun
do_with_root chown -R root:letsencrypt /etc/letsencrypt >> /opt/idssys/nodemgmt/cert-renewal.lastrun
do_with_root chmod -R 6775 /etc/letsencrypt >> /opt/idssys/nodemgmt/cert-renewal.lastrun
do_with_root $CERT_DAEMON renew --webroot -w /var/www/html 2>&1 >> /opt/idssys/nodemgmt/cert-renewal.lastrun
do_with_root chown -R root:letsencrypt /etc/letsencrypt 2>&1 >> /opt/idssys/nodemgmt/cert-renewal.lastrun
do_with_root chmod -R 6775 /etc/letsencrypt 2>&1 >> /opt/idssys/nodemgmt/cert-renewal.lastrun
sleep 20
"$0" service nginx reload >> /opt/idssys/nodemgmt/cert-renewal.lastrun
"$0" service nginx reload 2>&1 >> /opt/idssys/nodemgmt/cert-renewal.lastrun
exit 0
;;