From 20977fc2a27a09c616fe882b07b9af5ffe5ca7bd Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 24 Nov 2014 00:52:42 -0500 Subject: [PATCH] =?UTF-8?q?Fix=20NO=5FVHOST=C2=A0check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It used to check if NO_VHOST is unset or set to the empty string It now checks if NO_VHOST is set to a non-empty string --- plugins/nginx-vhosts/post-deploy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/nginx-vhosts/post-deploy b/plugins/nginx-vhosts/post-deploy index d1f07ae96..fe01ab77b 100755 --- a/plugins/nginx-vhosts/post-deploy +++ b/plugins/nginx-vhosts/post-deploy @@ -9,11 +9,11 @@ set +e NO_VHOST=$(dokku config:get $APP NO_VHOST) set -e -if [[ -z "$NO_VHOST" ]]; then +if [[ -n "$NO_VHOST" ]]; then echo "-----> NO_VHOST config detected" fi -if [[ -f "$DOKKU_ROOT/VHOST" && ! -z "$NO_VHOST" ]]; then +if [[ -f "$DOKKU_ROOT/VHOST" && ! -n "$NO_VHOST" ]]; then VHOST=$(< "$DOKKU_ROOT/VHOST") SUBDOMAIN=${APP/%\.${VHOST}/} hostname=$(: | pluginhook nginx-hostname $APP $SUBDOMAIN $VHOST)