Update sites.inc
This commit is contained in:
@@ -446,17 +446,20 @@ NEWSITE(){
|
||||
echo
|
||||
echo -e "${idsCL[LightGreen]}The new site for '${idsCL[LightGreen]}${NEW_SITE}${idsCL[Default]}' has been created.${idsCL[Default]}"
|
||||
echo
|
||||
# echo -en "${idsCL[LightCyan]}Restart NGINX on all Nodes (Y/n): ${idsCL[Default]}"
|
||||
# read -n 1 NGINXRELOAD
|
||||
# if [[ ${NGINXRELOAD} =~ ^[Nn]$ ]]; then
|
||||
# echo
|
||||
# else
|
||||
# echo
|
||||
if [ ! -f ${NM_NGINXPATH}/sites-enabled/default* ]; then
|
||||
echo -en "${idsCL[LightCyan]}Restart NGINX on all Nodes (Y/n): ${idsCL[Default]}"
|
||||
read -n 1 NGINXRELOAD
|
||||
if [[ ${NGINXRELOAD} =~ ^[Nn]$ ]]; then
|
||||
echo
|
||||
else
|
||||
SERVICE nginx restart
|
||||
fi
|
||||
else
|
||||
SERVICE nginx restart
|
||||
# fi
|
||||
fi
|
||||
else
|
||||
echo "Missing proxy arguments"
|
||||
Exit 1
|
||||
exit 1
|
||||
fi
|
||||
|
||||
else
|
||||
@@ -630,7 +633,7 @@ SITEINFO(){
|
||||
echo -e "\033[K"
|
||||
fi
|
||||
if [ "${edit}" != "s" ]; then
|
||||
if [ $f -eq 0 ]; then
|
||||
# if [ $f -eq 0 ]; then
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[K (${idsCL[Green]}s${idsCL[Default]})ave, (${idsCL[Red]}c${idsCL[Default]})ancel, (${idsCL[Green]}e${idsCL[Default]})xit"
|
||||
@@ -638,7 +641,7 @@ SITEINFO(){
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[K"
|
||||
echo -e "\033[7A"
|
||||
fi
|
||||
# fi
|
||||
|
||||
echo -en "\n\033[K${idsCL[LightCyan]}Enter the line number to edit: ${idsCL[Default]}"
|
||||
read -n 1 edit
|
||||
|
||||
Reference in New Issue
Block a user