Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-01 20:29:38 -06:00
parent e794a6847d
commit a4eed17409

View File

@@ -58,8 +58,8 @@ case "$1" in
echo -e "${idsCL[LightRed]}Deleting site '${idsCL[Red]}${DEL_SITE}${idsCL[LightRed]}'...${idsCL[Default]}"
echo ""
echo -e "${idsCL[LightGreen]}[[${NM_SERVICES[${2}]} ${ADISP}ing]]${idsCL[Default]}"
echo -e "${idsCL[LightGreen]}-------------------------------------------${idsCL[Default]}"
echo -e "${idsCL[LightRed]}[[Removing Files and Folders]]${idsCL[Default]}"
echo -e "${idsCL[LightRed]}-------------------------------------------${idsCL[Default]}"
nid=1
for nip in "${NODE_HOSTS[@]}"
@@ -70,7 +70,7 @@ case "$1" in
else
NCMD="ssh root@${nip}"
fi
echo -en "${ADISP}ing on iDS-Node${nid} ($nip)... ${idsCL[Default]}"
echo -en "Removing from iDS-Node${nid} ($nip)... ${idsCL[Default]}"
${NCMD} rm -f /etc/nginx/sites-available/${DEL_SITE}.conf
${NCMD} rm -f /etc/nginx/sites-enabled/${DEL_SITE}.conf
${NCMD} rm -rf /var/www/${DEL_SITE}
@@ -80,7 +80,7 @@ case "$1" in
echo -e "${idsCL[Green]}OK${idsCL[Default]}"
nid=`expr $nid + 1`
done
echo ""
${FOLDER}/nodemgmt-scripts.sh service nginx reload
echo -e "${idsCL[LightRed]}Site has been deleted.${idsCL[Default]}"