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