From 353a8c5608b56c494f7481fb4fc28da8ad085f92 Mon Sep 17 00:00:00 2001 From: cytopia Date: Wed, 25 Jul 2018 22:33:43 +0200 Subject: [PATCH] Fix unbound variable in silent mode --- data/create-vhost.sh | 4 ++-- data/docker-entrypoint.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/create-vhost.sh b/data/create-vhost.sh index 24faa3c..a0a0220 100755 --- a/data/create-vhost.sh +++ b/data/create-vhost.sh @@ -10,8 +10,8 @@ VHOST_TLD="${3}" VHOST_TPL="${4}" CA_KEY="${5}" CA_CRT="${6}" -VERBOSE="${7}" -GENERATE_SSL="${8}" +GENERATE_SSL="${7}" +VERBOSE="${8:-}" if [ "${GENERATE_SSL}" = "1" ]; then if [ ! -d "/etc/httpd/cert/mass" ]; then diff --git a/data/docker-entrypoint.sh b/data/docker-entrypoint.sh index 498183f..fe00e93 100755 --- a/data/docker-entrypoint.sh +++ b/data/docker-entrypoint.sh @@ -222,7 +222,7 @@ if [ "${MASS_VHOST_ENABLE}" -eq "1" ]; then fi # Create watcherd sub commands - watcherd_add="create-vhost.sh '%%p' '%%n' '${MASS_VHOST_TLD}' '%%p/${MASS_VHOST_TPL}/' '${CA_KEY}' '${CA_CRT}' '${verbose}' '1'" + watcherd_add="create-vhost.sh '%%p' '%%n' '${MASS_VHOST_TLD}' '%%p/${MASS_VHOST_TPL}/' '${CA_KEY}' '${CA_CRT}' '1' '${verbose}'" watcherd_del="rm /etc/httpd/vhost.d/%%n.conf" watcherd_tri="${HTTPD_RELOAD}"