From 82c11a2b2c0ab5cab998e2650a7c6d4276ca6a66 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 8 Jan 2017 19:35:49 -0700 Subject: [PATCH] fix: call post-certs-update on the application before updating domains This ensures that we set the proper ssl ports. Closes #2480 Closes #2528 --- plugins/certs/subcommands/generate | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/certs/subcommands/generate b/plugins/certs/subcommands/generate index daa2caed8..6cc75beee 100755 --- a/plugins/certs/subcommands/generate +++ b/plugins/certs/subcommands/generate @@ -25,6 +25,7 @@ certs_generate_cmd() { mv -f "$CERTS_GENERATE_TMP_WORK_DIR/server.key" "$CERTS_GENERATE_TMP_WORK_DIR/server.crt" "$APP_SSL_PATH" chmod 750 "$APP_SSL_PATH" chmod 640 "$APP_SSL_PATH/server.key" "$APP_SSL_PATH/server.crt" + plugn trigger post-certs-update "$APP" [[ -n "$DOMAIN" ]] && (domains_add "$APP" "$DOMAIN" || plugn trigger post-domains-update "$APP") dokku_log_info1 "The following is a certificate signing request that can be used" dokku_log_info1 "to generate an 'officially' signed SSL certificate for $APP at $DOMAIN"