From 27ec5f0f6d9e6ed4580f1677c9812bb1a5220326 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 12 Mar 2016 02:21:53 -0500 Subject: [PATCH] Do not restart stopped processes on config:set/unset Closes #1889 --- plugins/config/functions | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/config/functions b/plugins/config/functions index ec515096d..a51871e69 100644 --- a/plugins/config/functions +++ b/plugins/config/functions @@ -202,7 +202,8 @@ ${var}" plugn trigger post-config-update "$APP" "set" "$@" fi - if [[ "$DOKKU_CONFIG_RESTART" == "true" ]]; then + local DOKKU_APP_RESTORE=$(config_get "$APP" DOKKU_APP_RESTORE || true) + if [[ "$DOKKU_CONFIG_RESTART" == "true" ]] && [[ "$DOKKU_APP_RESTORE" != 0 ]]; then dokku_log_info1 "Restarting app $APP" dokku ps:restart "$APP" fi @@ -233,7 +234,8 @@ config_unset() { plugn trigger post-config-update "$APP" "unset" "$@" - if [[ "$DOKKU_CONFIG_RESTART" == "true" ]]; then + local DOKKU_APP_RESTORE=$(config_get "$APP" DOKKU_APP_RESTORE || true) + if [[ "$DOKKU_CONFIG_RESTART" == "true" ]] && [[ "$DOKKU_APP_RESTORE" != 0 ]]; then dokku_log_info1 "Restarting app $APP" dokku ps:restart "$APP" fi