This commit is contained in:
2025-06-01 13:56:59 -05:00
parent dbf0c65d41
commit de7837c831
4 changed files with 33 additions and 14 deletions

View File

@@ -86,7 +86,13 @@ NEWCERT(){
sed -i "s/#include conf.d\/include\/force-ssl.conf/include conf.d\/include\/force-ssl.conf/g" ${NM_NGINXPATH}/sites-available/${MAIN_CERT}.conf
DIVIDER true
[ ${NONGINXRESTART} -eq 0 ] && SERVICE_MGMT nginx restart
if [ ${NONGINXRESTART} -eq 0 ]; then
if [[ "${RUN_NODE_IP}" != "10.6.1"* ]]; then
SERVICE_MGMT nginx restart
else
/bin/systemctl restart nginx
fi
fi
fi
echo
echo -e "${idsCL[Green]}Certificate has been successfully created for '${idsCL[Yellow]}${NEW_CERT}${idsCL[Green]}'...${idsCL[Default]}"