Update nodemgmt-scripts.sh
This commit is contained in:
@@ -1338,10 +1338,13 @@ NEWSITE(){
|
|||||||
showdivide=yes
|
showdivide=yes
|
||||||
if [[ $CREATE_SSL =~ ^[Yy]$ ]] || [ "${CREATE_SSL}" = "" ]; then
|
if [[ $CREATE_SSL =~ ^[Yy]$ ]] || [ "${CREATE_SSL}" = "" ]; then
|
||||||
CREATE_SSL=yes
|
CREATE_SSL=yes
|
||||||
|
echo -e -n "${idsCL[LightCyan]}Add additonal domain names to the SSL cert (comma seperated)? : ${idsCL[Default]}"
|
||||||
|
read ssladd
|
||||||
else
|
else
|
||||||
CREATE_SSL=no
|
CREATE_SSL=no
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z ${SITE_TYPE+x} ]; then
|
if [ -z ${SITE_TYPE+x} ]; then
|
||||||
echo -e -n "${idsCL[LightCyan]}Site type (local/{proxy}): ${idsCL[Default]}"
|
echo -e -n "${idsCL[LightCyan]}Site type (local/{proxy}): ${idsCL[Default]}"
|
||||||
read SITE_TYPE
|
read SITE_TYPE
|
||||||
@@ -1518,7 +1521,7 @@ NEWSITE(){
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${CREATE_SSL}" = "yes" ]; then
|
if [ "${CREATE_SSL}" = "yes" ]; then
|
||||||
NEWCERT ${NEW_SITE}
|
[ "${ssladd}" != "" ] && NEWCERT ${NEW_SITE},${ssladd} || NEWCERT ${NEW_SITE}
|
||||||
if [ "${SITE_TYPE}" == "proxy" ]; then
|
if [ "${SITE_TYPE}" == "proxy" ]; then
|
||||||
sed -i "s/#ssl_certificate/ssl_certificate/g" /etc/nginx/sites-enabled/${MAIN_SITE}.conf
|
sed -i "s/#ssl_certificate/ssl_certificate/g" /etc/nginx/sites-enabled/${MAIN_SITE}.conf
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user