autoconf - fix certbot bug when multiple server_name for one service

This commit is contained in:
bunkerity
2021-04-20 11:46:53 +02:00
parent 69fe066777
commit 02f9fbe5fc
2 changed files with 2 additions and 5 deletions

View File

@@ -9,10 +9,7 @@
# get nginx path and override multisite variables
NGINX_PREFIX="/etc/nginx/"
if [ "$MULTISITE" = "yes" ] ; then
first_server="$1"
if [ ! -f "/usr/sbin/nginx" ] ; then
first_server=$(echo "$1" | cut -d ' ' -f 1)
fi
first_server=$(echo "$1" | cut -d ' ' -f 1)
NGINX_PREFIX="${NGINX_PREFIX}${first_server}/"
if [ ! -d "$NGINX_PREFIX" ] ; then
mkdir "$NGINX_PREFIX"