From 3f9d770a79bf845615a36b7dd410c741af5042da Mon Sep 17 00:00:00 2001 From: Michael Hobbs Date: Thu, 15 Oct 2015 15:59:08 -0700 Subject: [PATCH] fix logic error in enabling nginx. fixes #1565 --- plugins/nginx-vhosts/commands | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/nginx-vhosts/commands b/plugins/nginx-vhosts/commands index f48f29d6e96..2b3e7803bce 100755 --- a/plugins/nginx-vhosts/commands +++ b/plugins/nginx-vhosts/commands @@ -52,9 +52,9 @@ case "$1" in verify_app_name "$2" APP="$2" - if [[ "$(is_app_nginx_enabled $APP)" == "true" ]]; then - config_unset --no-restart $APP DOKKU_NO_NGINX - unset DOKKU_NO_NGINX + if [[ "$(is_app_nginx_enabled $APP)" == "false" ]]; then + config_unset --no-restart $APP DOKKU_NO_NGINX NO_VHOST + unset DOKKU_NO_NGINX NO_VHOST nginx_build_config $APP else dokku_log_info1 "nginx is already enabled for app ($APP)"