Update nodemgmt-scripts.sh

This commit is contained in:
2019-12-07 21:41:03 -06:00
parent bfd5d9f0d3
commit af7d444661

View File

@@ -399,7 +399,7 @@ NEWCERT(){
echo -e "${NEW_CERT}\n${daterun}" > ${FOLDER}/cert-request.lastrun
yes | cp -rfH ${FOLDER}/cert-request.lastrun /etc/letsencrypt/cert-request.lastrun
DIVIDER true
SERVICE nginx reload
SERVICE nginx reload web
fi
echo
echo -e "${idsCL[Green]}Certificate has been successfully created for '${idsCL[Yellow]}${NEW_CERT}${idsCL[Green]}'...${idsCL[Default]}"
@@ -475,7 +475,7 @@ CERTRENEW(){
daterun=`date +%Y-%m-%d-%H-%M-%S`
echo -e "${daterun}" >> /etc/letsencrypt/cert-renewal.lastrun
DIVIDER true
SERVICE nginx reload 2>&1 | tee -a ${FOLDER}/cert-renewal.lastrun
SERVICE nginx reload web 2>&1 | tee -a ${FOLDER}/cert-renewal.lastrun
echo -e "${idsCL[LightGreen]}The certificates have been renewed.${idsCL[Default]}"
echo ""
if [ -z $action ] || [ "${action}" = "gui" ]; then
@@ -491,7 +491,7 @@ NIGHTLYRENEW(){
yes | cp -rfH ${FOLDER}/cert-renewal.lastrun /etc/letsencrypt/cert-renewal.lastrun
daterun=`date +%Y-%m-%d-%H-%M-%S`
echo -e "${daterun}" >> /etc/letsencrypt/cert-renewal.lastrun
SERVICE nginx reload &>> ${FOLDER}/cert-renewal.lastrun
SERVICE nginx reload web &>> ${FOLDER}/cert-renewal.lastrun
}
LISTCERTS(){
@@ -967,7 +967,7 @@ NEWSITE(){
daterun=`date +%Y-%m-%d-%H-%M-%S`
echo -e "${daterun}" >> /etc/nginx/new-site.lastrun
DIVIDER true
SERVICE nginx reload
SERVICE nginx reload web
echo ""
echo -e "${idsCL[LightGreen]}The new site for '${idsCL[LightGreen]}${NEW_SITE}${idsCL[Default]}' has been created.${idsCL[Default]}"
echo ""