Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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]}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user