1 parent
900fcded9b
commit
27ec5f0f6d
1 file changed
+4
-2
@@ -202,7 +202,8 @@ ${var}"
|
|||||||
plugn trigger post-config-update "$APP" "set" "$@"
|
plugn trigger post-config-update "$APP" "set" "$@"
|
||||||
fi
|
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_log_info1 "Restarting app $APP"
|
||||||
dokku ps:restart "$APP"
|
dokku ps:restart "$APP"
|
||||||
fi
|
fi
|
||||||
@@ -233,7 +234,8 @@ config_unset() {
|
|||||||
|
|
||||||
plugn trigger post-config-update "$APP" "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_log_info1 "Restarting app $APP"
|
||||||
dokku ps:restart "$APP"
|
dokku ps:restart "$APP"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user