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