Add DOKKU_ROOT_ON_HOST variable

This is to be used in place of `DOKKU_ROOT` when we need to refer to a
path on the system where the Docker daemon is being run; if `dokku` is
running in a container this may be different from the regular
`DOKKU_ROOT`.
This commit is contained in:
Jody McIntyre
2018-04-09 17:44:32 -04:00
parent 6f2cf34f10
commit 13bd5864b3

1
dokku
View File

@@ -27,6 +27,7 @@ if [[ -d $DOKKU_ROOT/.dokkurc ]]; then
done
fi
[[ $DOKKU_TRACE ]] && set -x
export DOKKU_ROOT_ON_HOST=${DOKKU_ROOT_ON_HOST:=$DOKKU_ROOT}
export DOKKU_DISTRO
# shellcheck disable=SC1091