Update nodemgmt-scripts.sh

This commit is contained in:
2023-04-25 11:46:58 -05:00
parent 7ebc912d72
commit 3ca5038d9f

View File

@@ -740,7 +740,7 @@ NEWCERT(){
if [ -f /etc/letsencrypt/live/${MAIN_CERT}/cert.pem ]; then
chown -R root:le /opt/lb-data/letsencrypt
chmod -R 6775 /opt/lb-data/letsencrypt
if [ -f /etc/nginx/sites-enabled/${MAIN_CERT} ]; then
if [ -f /etc/nginx/sites-enabled/${MAIN_CERT}.conf ]; then
rm -f ${FOLDER}/cert-request.lastrun
daterun=`date +%Y-%m-%d-%H-%M-%S`
echo -e "${NEW_CERT}\n${daterun}" > ${FOLDER}/cert-request.lastrun