From e3c30c169b38919a50e60818897a436866d1bd3b Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 25 Apr 2023 12:40:03 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 194b19c1..afb93ad1 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -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