Update nodemgmt-scripts.sh

This commit is contained in:
2019-01-30 08:31:49 -06:00
parent 73e7067aca
commit be93b04081

View File

@@ -75,7 +75,7 @@ case "$1" in
certrenew)
echo -e "${idsCL[LightGreen]}Renewing Certificates...${idsCL[Default]}"
do_with_root $DAEMON renew --webroot -w /var/www/html 2>&1 | tee /opt/idssys/nodemgmt/cert-renewal.lastrun
do_with_root $CERT_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]}"
@@ -86,7 +86,7 @@ case "$1" in
nightlyrenew)
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 $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
sleep 20