From 077aa4dc1180f51919545e485d1c3120b2256267 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 26 Dec 2022 23:49:28 -0500 Subject: [PATCH] feat: respect DOKKU_LIB_HOST_ROOT for mounted data volumes This change allows folks to change where dokku mounts data from for all official plugins, removing the need to specify the configuration on a one-off basis. Refs dokku/dokku#5468 --- config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config b/config index 610e95c..2743176 100644 --- a/config +++ b/config @@ -3,7 +3,8 @@ _DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" export POSTGRES_IMAGE=${POSTGRES_IMAGE:="$(awk -F '[ :]' '{print $2}' "${_DIR}/Dockerfile")"} export POSTGRES_IMAGE_VERSION=${POSTGRES_IMAGE_VERSION:="$(awk -F '[ :]' '{print $3}' "${_DIR}/Dockerfile")"} export POSTGRES_ROOT=${POSTGRES_ROOT:="$DOKKU_LIB_ROOT/services/postgres"} -export POSTGRES_HOST_ROOT=${POSTGRES_HOST_ROOT:=$POSTGRES_ROOT} +export DOKKU_LIB_HOST_ROOT=${DOKKU_LIB_HOST_ROOT:=$DOKKU_LIB_ROOT} +export POSTGRES_HOST_ROOT=${POSTGRES_HOST_ROOT:="$DOKKU_LIB_HOST_ROOT/services/postgres"} export PLUGIN_UNIMPLEMENTED_SUBCOMMANDS=() export PLUGIN_COMMAND_PREFIX="postgres"