From 372802f83420107dd8e1da026d6a094a78a89c2c Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 29 Jul 2016 01:52:19 -0400 Subject: [PATCH] Only remove https ports when removing a certificate --- plugins/nginx-vhosts/post-certs-remove | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/nginx-vhosts/post-certs-remove b/plugins/nginx-vhosts/post-certs-remove index fded1290a..ff6518d33 100755 --- a/plugins/nginx-vhosts/post-certs-remove +++ b/plugins/nginx-vhosts/post-certs-remove @@ -9,7 +9,10 @@ nginx_post_certs_remove() { local trigger="nginx_post_certs_remove" local APP="$1" if [[ "$(get_app_proxy_type "$APP")" == "nginx" ]]; then - config_unset --no-restart "$APP" DOKKU_NGINX_PORT DOKKU_NGINX_SSL_PORT DOKKU_PROXY_PORT_MAP + config_unset --no-restart "$APP" DOKKU_NGINX_SSL_PORT + + # shellcheck disable=SC2046 + remove_proxy_ports "$APP" $(filter_app_proxy_ports "$APP" "https" "443") fi }