Skip to content

Commit

Permalink
Merge pull request #13 from devilbox/release-0.18
Browse files Browse the repository at this point in the history
Fix unbound variable in silent mode
  • Loading branch information
cytopia authored Jul 25, 2018
2 parents b893e55 + 353a8c5 commit 93a5e30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions data/create-vhost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down

0 comments on commit 93a5e30

Please sign in to comment.