Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-06 20:49:10 -06:00
parent 061919b0f0
commit 5e258e2fb3

View File

@@ -78,6 +78,7 @@ NEWCERT(){
do_with_root chown -R root:letsencrypt /etc/letsencrypt
do_with_root chmod -R 6775 /etc/letsencrypt
rm -f /opt/idssys/nodemgmt/cert-request.lastrun
daterun=`date +%Y-%m-%d-%H-%M`
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