Update nodemgmt-scripts.sh
This commit is contained in:
@@ -220,34 +220,20 @@ DELSITE(){
|
|||||||
DELSITES(){
|
DELSITES(){
|
||||||
echo -e "${idsCL[Green]}Select a site to delete...${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Select a site to delete...${idsCL[Default]}"
|
||||||
DIVIDER true
|
DIVIDER true
|
||||||
|
|
||||||
|
|
||||||
while :
|
while :
|
||||||
do
|
do
|
||||||
echo " [1] Node Status"
|
sid=1
|
||||||
|
for siteconf in /etc/nginx/sites-available/* ; do
|
||||||
|
IFS='/'; site_conf=(${siteconf}); unset IFS
|
||||||
|
echo " [${sid}] ${site_conf[4]}"
|
||||||
|
sid=`expr $sid + 1`
|
||||||
|
done
|
||||||
echo ""
|
echo ""
|
||||||
echo " [Q] Quit"
|
echo " [Q] Quit"
|
||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
echo -e -n "${idsCL[LightYellow]}Please select an [ActionItem] from above:${idsCL[Default]} "
|
echo -e -n "${idsCL[LightYellow]}Please select a site from above from above:${idsCL[Default]} "
|
||||||
read -n 1 opt
|
read -n 2 opt
|
||||||
echo ""
|
|
||||||
case $opt in
|
|
||||||
1) STATUS; GUI;;
|
|
||||||
2) GUI;;
|
|
||||||
3) GUI;;
|
|
||||||
4) GUI;;
|
|
||||||
5) GUI;;
|
|
||||||
6) CERTRENEW; GUI;;
|
|
||||||
7) LISTCERTS; GUI;;
|
|
||||||
8) SET-PERMISSIONS; GUI;;
|
|
||||||
[Bb]) GUI;;
|
|
||||||
[Qq]) EXIT1;exit 0;;
|
|
||||||
*) echo "Thats an invaild option,";
|
|
||||||
echo "please select a valid option only.";
|
|
||||||
sleep 1;;
|
|
||||||
esac
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user