Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-06 20:48:01 -06:00
parent a9247b5491
commit 061919b0f0

View File

@@ -77,8 +77,9 @@ NEWCERT(){
if [ -f /etc/letsencrypt/live/${NEW_CERT}/cert.pem ]; then
do_with_root chown -R root:letsencrypt /etc/letsencrypt
do_with_root chmod -R 6775 /etc/letsencrypt
rm -f /etc/letsencrypt/cert-request.lastrun
echo -e "${NEW_CERT}\n${daterun}" > /etc/letsencrypt/cert-renewal.lastrun
rm -f /opt/idssys/nodemgmt/cert-request.lastrun
echo -e "${NEW_CERT}\n${daterun}" > /opt/idssys/nodemgmt/cert-request.lastrun
yes | cp -rfH /opt/idssys/nodemgmt/cert-request.lastrun /etc/letsencrypt/cert-request.lastrun
DIVIDER true
echo -en "${idsCL[LightYellow]}Waiting for certifcate replication between the nodes... ${idsCL[Default]}"
checked=false