From 183edc9839de78615f23b3d9011bd34b960ea10e Mon Sep 17 00:00:00 2001 From: Randall Leeds Date: Mon, 24 Aug 2015 15:57:34 -0700 Subject: [PATCH] Remove uses of (un)set-norestart --- docs/development/plugin-creation.md | 4 ++-- plugins/00_dokku-standard/commands | 2 +- plugins/domains/commands | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/development/plugin-creation.md b/docs/development/plugin-creation.md index f56b11b7478..001fe34fb04 100644 --- a/docs/development/plugin-creation.md +++ b/docs/development/plugin-creation.md @@ -77,6 +77,6 @@ A few notes: - As some plugins require access to set app config settings and do not want/require the default Heroku-style behavior of a restart, we have the following "internal" commands that provide this functionality : ```shell - dokku config:set-norestart APP KEY1=VALUE1 [KEY2=VALUE2 ...] - dokku config:unset-norestart APP KEY1 [KEY2 ...] + dokku config:set --no-restart APP KEY1=VALUE1 [KEY2=VALUE2 ...] + dokku config:unset --no-restart APP KEY1 [KEY2 ...] ``` diff --git a/plugins/00_dokku-standard/commands b/plugins/00_dokku-standard/commands index 5b1a5f302f0..eb939472d0f 100755 --- a/plugins/00_dokku-standard/commands +++ b/plugins/00_dokku-standard/commands @@ -41,7 +41,7 @@ case "$1" in dockerfile) # extract first port from Dockerfile DOCKERFILE_PORT=$(get_dockerfile_exposed_port Dockerfile) - [[ -n "$DOCKERFILE_PORT" ]] && dokku config:set-norestart $APP DOKKU_DOCKERFILE_PORT=$DOCKERFILE_PORT + [[ -n "$DOCKERFILE_PORT" ]] && dokku config:set --no-restart $APP DOKKU_DOCKERFILE_PORT=$DOCKERFILE_PORT pluginhook pre-build-dockerfile "$APP" [[ "$DOKKU_DOCKERFILE_CACHE_BUILD" == "false" ]] && DOKKU_DOCKER_BUILD_OPTS="$DOKKU_DOCKER_BUILD_OPTS --no-cache" diff --git a/plugins/domains/commands b/plugins/domains/commands index 9dfc86968ab..fcd533af660 100755 --- a/plugins/domains/commands +++ b/plugins/domains/commands @@ -46,7 +46,7 @@ case "$1" in fi if [[ "$VHOST" =~ $RE_IPV4 ]] || [[ "$VHOST" =~ $RE_IPV6 ]];then dokku_log_info2 "unsupported vhost config found. disabling vhost support" - dokku config:set-norestart $APP NO_VHOST=1 + dokku config:set --no-restart $APP NO_VHOST=1 else if [[ -f "$DOKKU_ROOT/VHOST" ]]; then dokku_log_info1 "Creating new $VHOST_PATH..."