Update nodemgmt-scripts.sh
This commit is contained in:
@@ -77,8 +77,9 @@ NEWCERT(){
|
|||||||
if [ -f /etc/letsencrypt/live/${NEW_CERT}/cert.pem ]; then
|
if [ -f /etc/letsencrypt/live/${NEW_CERT}/cert.pem ]; then
|
||||||
do_with_root chown -R root:letsencrypt /etc/letsencrypt
|
do_with_root chown -R root:letsencrypt /etc/letsencrypt
|
||||||
do_with_root chmod -R 6775 /etc/letsencrypt
|
do_with_root chmod -R 6775 /etc/letsencrypt
|
||||||
rm -f /etc/letsencrypt/cert-request.lastrun
|
rm -f /opt/idssys/nodemgmt/cert-request.lastrun
|
||||||
echo -e "${NEW_CERT}\n${daterun}" > /etc/letsencrypt/cert-renewal.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
|
DIVIDER true
|
||||||
echo -en "${idsCL[LightYellow]}Waiting for certifcate replication between the nodes... ${idsCL[Default]}"
|
echo -en "${idsCL[LightYellow]}Waiting for certifcate replication between the nodes... ${idsCL[Default]}"
|
||||||
checked=false
|
checked=false
|
||||||
|
|||||||
Reference in New Issue
Block a user