Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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
|
||||
;;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user