Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-05 23:38:19 -06:00
parent 09eb174e55
commit 3d07b166f2

View File

@@ -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]}