From 3faa37b2e108ae27d6889563fa700407a54ed2ee Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Thu, 13 Nov 2014 16:50:44 +0100 Subject: [PATCH] Keep environment for sudo To be able to set some other environment variables even if dokku gets called from a different user we have to keep the environment with sudo intact, so i added the -E option. --- dokku | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dokku b/dokku index bacb6080f..50d2cb62d 100755 --- a/dokku +++ b/dokku @@ -12,7 +12,7 @@ export PLUGIN_PATH=${PLUGIN_PATH:="/var/lib/dokku/plugins"} [[ $DOKKU_TRACE ]] && set -x if [[ $(id -un) != "dokku" && $1 != plugins-install* && $1 != "plugins-update" ]]; then - sudo -u dokku -H $0 "$@" + sudo -u dokku -E -H $0 "$@" exit fi