Update nodemgmt-scripts.sh
This commit is contained in:
@@ -75,22 +75,22 @@ case "$1" in
|
||||
|
||||
certrenew)
|
||||
echo -e "${idsCL[LightGreen]}Renewing Certificates...${idsCL[Default]}"
|
||||
do_with_root $DAEMON renew --webroot -w /var/www/html
|
||||
do_with_root chown -R root:letsencrypt /etc/letsencrypt
|
||||
do_with_root chmod -R 6775 /etc/letsencrypt
|
||||
do_with_root $DAEMON renew --webroot -w /var/www/html 2>&1 | tee /opt/idssys/nodemgmt/cert-renewal.lastrun
|
||||
do_with_root chown -R root:letsencrypt /etc/letsencrypt 2>&1 | tee -a /opt/idssys/nodemgmt/cert-renewal.lastrun
|
||||
do_with_root chmod -R 6775 /etc/letsencrypt 2>&1 | tee -a /opt/idssys/nodemgmt/cert-renewal.lastrun
|
||||
echo -e "${idsCL[LightGreen]}Waiting for Certificate Replication...${idsCL[Default]}"
|
||||
sleep 20
|
||||
"$0" service nginx reload
|
||||
"$0" service nginx reload 2>&1 | tee -a /opt/idssys/nodemgmt/cert-renewal.lastrun
|
||||
exit 0
|
||||
;;
|
||||
|
||||
nightlyrenew)
|
||||
rm -f /opt/idssys/nodemgmt/cert-renewal-run-$(hostname)
|
||||
do_with_root $DAEMON renew --webroot -w /var/www/html >> /opt/idssys/nodemgmt/cert-renewal-run-$(hostname)
|
||||
do_with_root chown -R root:letsencrypt /etc/letsencrypt >> /opt/idssys/nodemgmt/cert-renewal-run-$(hostname)
|
||||
do_with_root chmod -R 6775 /etc/letsencrypt >> /opt/idssys/nodemgmt/cert-renewal-run-$(hostname)
|
||||
rm -f /opt/idssys/nodemgmt/cert-renewal.lastrun
|
||||
do_with_root $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
|
||||
sleep 20
|
||||
"$0" service nginx reload >> /opt/idssys/nodemgmt/cert-renewal-run-$(hostname)
|
||||
"$0" service nginx reload >> /opt/idssys/nodemgmt/cert-renewal.lastrun
|
||||
exit 0
|
||||
;;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user