Update nodemgmt-scripts.sh
This commit is contained in:
@@ -75,7 +75,7 @@ case "$1" in
|
|||||||
|
|
||||||
certrenew)
|
certrenew)
|
||||||
echo -e "${idsCL[LightGreen]}Renewing Certificates...${idsCL[Default]}"
|
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 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
|
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]}"
|
echo -e "${idsCL[LightGreen]}Waiting for Certificate Replication...${idsCL[Default]}"
|
||||||
@@ -86,7 +86,7 @@ case "$1" in
|
|||||||
|
|
||||||
nightlyrenew)
|
nightlyrenew)
|
||||||
rm -f /opt/idssys/nodemgmt/cert-renewal.lastrun
|
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 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 chmod -R 6775 /etc/letsencrypt >> /opt/idssys/nodemgmt/cert-renewal.lastrun
|
||||||
sleep 20
|
sleep 20
|
||||||
|
|||||||
Reference in New Issue
Block a user