Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-03 22:14:10 -06:00
parent 8afbf41d04
commit a0652841ab

View File

@@ -170,7 +170,7 @@ NEWSITE(){
if [ ! -z ${PROXYSCHEME+x} ] && [ ! -z ${PROXYHOST+x} ] && [ ! -z ${PROXYPORT+x} ]; then GO=true; fi
else GO=true; fi
if [ "${GO}" = "true" ]; then
echo -e "${idsCL[LightGreen]}Setting up new site for '${idsCL[Yellow]}${MAIN_SITE}${idsCL[LightGreen]}' {${NGINX_SERVERNAM}}...${idsCL[Default]}"
echo -e "${idsCL[LightGreen]}Setting up new site for '${idsCL[Yellow]}${MAIN_SITE}${idsCL[LightGreen]}' {${NGINX_SERVERNAME}}...${idsCL[Default]}"
echo ""
if [ "${SITE_TYPE}" = "local" ]; then
echo -e "server {
@@ -247,9 +247,9 @@ NEWSITE(){
access_log /var/www/!NGINX-Logs/proxy-${MAIN_SITE}.log proxy;
location / {" >> /etc/nginx/sites-available/${MAIN_SITE}.conf
if [ "${CREATE_SSL}" = "true" ]; then
echo -e " include conf.d/include/force-ssl.conf;" >> /etc/nginx/sites-available/${MAIN_SITE}.conf
fi
if [ "${CREATE_SSL}" = "true" ]; then
echo -e " include conf.d/include/force-ssl.conf;" >> /etc/nginx/sites-available/${MAIN_SITE}.conf
fi
echo -e " include conf.d/include/proxy.conf;
}
}
@@ -452,7 +452,7 @@ if [ ${action-x} ]; then
certrenew) CERTRENEW;;
nightlyrenew) NIGHTLYRENEW;;
delsite) DELSITE;;
newsite) NEWSITE ${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14};;
newsite) NEWSITE ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14};;
update) ;;
status) STATUS;;
status-check) STATUS-CHECK;;