From f2ec959598f9b5a7945abe842e3fbbce4fcf2e71 Mon Sep 17 00:00:00 2001 From: Michael Hobbs Date: Mon, 9 Oct 2017 15:33:09 -0700 Subject: [PATCH] strip restart flag from app_user_pre_deploy_trigger --- plugins/00_dokku-standard/pre-deploy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/00_dokku-standard/pre-deploy b/plugins/00_dokku-standard/pre-deploy index c78257140..74df3a5aa 100755 --- a/plugins/00_dokku-standard/pre-deploy +++ b/plugins/00_dokku-standard/pre-deploy @@ -28,6 +28,8 @@ app_user_pre_deploy_trigger() { if [[ -n "$APP_PATHS" ]]; then CONTAINER_PATHS=$(echo "$APP_PATHS" | awk -F ':' '{ print $2 }' | xargs) DOCKER_ARGS=$(: | plugn trigger docker-args-deploy "$APP" "$IMAGE_TAG" | xargs) + # strip --restart args from DOCKER_ARGS + DOCKER_ARGS=$(sed -e "s/--restart=[[:graph:]]\+[[:blank:]]\?//g" <<< "$DOCKER_ARGS") fi if [[ "$DOKKU_APP_TYPE" == "herokuish" ]] && [[ -n "$CONTAINER_PATHS" ]]; then