Update nodemgmt-scripts.sh
This commit is contained in:
@@ -254,6 +254,7 @@ DELSITES(){
|
|||||||
DIVIDER true
|
DIVIDER true
|
||||||
sid=1
|
sid=1
|
||||||
for siteconf in /etc/nginx/sites-available/* ; do
|
for siteconf in /etc/nginx/sites-available/* ; do
|
||||||
|
[ -e "$siteconf" ] || continue
|
||||||
IFS='/'; site_conf=(${siteconf}); unset IFS
|
IFS='/'; site_conf=(${siteconf}); unset IFS
|
||||||
SITES[${sid}]=${site_conf[4]}
|
SITES[${sid}]=${site_conf[4]}
|
||||||
sid=`expr $sid + 1`
|
sid=`expr $sid + 1`
|
||||||
@@ -374,7 +375,7 @@ NEWSITE(){
|
|||||||
fi
|
fi
|
||||||
echo -e -n "${idsCL[LightRed]}Is this information correct? [Y/n]${idsCL[Default]} "
|
echo -e -n "${idsCL[LightRed]}Is this information correct? [Y/n]${idsCL[Default]} "
|
||||||
read response
|
read response
|
||||||
if [[ $response =~ ^[Yy]$ ]]; then
|
if [[ $response =~ ^[Yy]$ ]]; then
|
||||||
if [[ ${NEW_SITE} == *","* ]]; then
|
if [[ ${NEW_SITE} == *","* ]]; then
|
||||||
IFS=','; NEW_SITES=(${NEW_SITE}); unset IFS
|
IFS=','; NEW_SITES=(${NEW_SITE}); unset IFS
|
||||||
MAIN_SITE=${NEW_SITES[0]}
|
MAIN_SITE=${NEW_SITES[0]}
|
||||||
|
|||||||
Reference in New Issue
Block a user