fix logic error in enabling nginx. fixes #1565

This commit is contained in:
Michael Hobbs committed 2015-10-15 15:59:16 -07:00
1 parent ef3480703a
commit 3f9d770a79
1 file changed
+3 -3
+3 -3
View File
@@ -52,9 +52,9 @@ case "$1" in
verify_app_name "$2" verify_app_name "$2"
APP="$2" APP="$2"
if [[ "$(is_app_nginx_enabled $APP)" == "true" ]]; then if [[ "$(is_app_nginx_enabled $APP)" == "false" ]]; then
config_unset --no-restart $APP DOKKU_NO_NGINX config_unset --no-restart $APP DOKKU_NO_NGINX NO_VHOST
unset DOKKU_NO_NGINX unset DOKKU_NO_NGINX NO_VHOST
nginx_build_config $APP nginx_build_config $APP
else else
dokku_log_info1 "nginx is already enabled for app ($APP)" dokku_log_info1 "nginx is already enabled for app ($APP)"