From ae702634dd4d607a82037431c197e84ca023a254 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 90d1cd7..e0a1aa7 100644 --- a/config +++ b/config @@ -3,7 +3,8 @@ _DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" export MYSQL_IMAGE=${MYSQL_IMAGE:="$(awk -F '[ :]' '{print $2}' "${_DIR}/Dockerfile")"} export MYSQL_IMAGE_VERSION=${MYSQL_IMAGE_VERSION:="$(awk -F '[ :]' '{print $3}' "${_DIR}/Dockerfile")"} export MYSQL_ROOT=${MYSQL_ROOT:="$DOKKU_LIB_ROOT/services/mysql"} -export MYSQL_HOST_ROOT=${MYSQL_HOST_ROOT:=$MYSQL_ROOT} +export DOKKU_LIB_HOST_ROOT=${DOKKU_LIB_HOST_ROOT:=$DOKKU_LIB_ROOT} +export MYSQL_HOST_ROOT=${MYSQL_HOST_ROOT:="$DOKKU_LIB_HOST_ROOT/services/mysql"} export PLUGIN_UNIMPLEMENTED_SUBCOMMANDS=() export PLUGIN_COMMAND_PREFIX="mysql"