Update nodemgmt-scripts.sh
This commit is contained in:
@@ -170,7 +170,7 @@ NEWSITE(){
|
|||||||
if [ ! -z ${PROXYSCHEME+x} ] && [ ! -z ${PROXYHOST+x} ] && [ ! -z ${PROXYPORT+x} ]; then GO=true; fi
|
if [ ! -z ${PROXYSCHEME+x} ] && [ ! -z ${PROXYHOST+x} ] && [ ! -z ${PROXYPORT+x} ]; then GO=true; fi
|
||||||
else GO=true; fi
|
else GO=true; fi
|
||||||
if [ "${GO}" = "true" ]; then
|
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 ""
|
echo ""
|
||||||
if [ "${SITE_TYPE}" = "local" ]; then
|
if [ "${SITE_TYPE}" = "local" ]; then
|
||||||
echo -e "server {
|
echo -e "server {
|
||||||
@@ -247,9 +247,9 @@ NEWSITE(){
|
|||||||
access_log /var/www/!NGINX-Logs/proxy-${MAIN_SITE}.log proxy;
|
access_log /var/www/!NGINX-Logs/proxy-${MAIN_SITE}.log proxy;
|
||||||
|
|
||||||
location / {" >> /etc/nginx/sites-available/${MAIN_SITE}.conf
|
location / {" >> /etc/nginx/sites-available/${MAIN_SITE}.conf
|
||||||
if [ "${CREATE_SSL}" = "true" ]; then
|
if [ "${CREATE_SSL}" = "true" ]; then
|
||||||
echo -e " include conf.d/include/force-ssl.conf;" >> /etc/nginx/sites-available/${MAIN_SITE}.conf
|
echo -e " include conf.d/include/force-ssl.conf;" >> /etc/nginx/sites-available/${MAIN_SITE}.conf
|
||||||
fi
|
fi
|
||||||
echo -e " include conf.d/include/proxy.conf;
|
echo -e " include conf.d/include/proxy.conf;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -452,7 +452,7 @@ if [ ${action-x} ]; then
|
|||||||
certrenew) CERTRENEW;;
|
certrenew) CERTRENEW;;
|
||||||
nightlyrenew) NIGHTLYRENEW;;
|
nightlyrenew) NIGHTLYRENEW;;
|
||||||
delsite) DELSITE;;
|
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) ;;
|
update) ;;
|
||||||
status) STATUS;;
|
status) STATUS;;
|
||||||
status-check) STATUS-CHECK;;
|
status-check) STATUS-CHECK;;
|
||||||
|
|||||||
Reference in New Issue
Block a user