fix: missing export DOKKU_LIB_HOST_ROOT

Populates DOKKU_LIB_HOST_ROOT into /etc/default/dokku which is required
to enable plugins such as postgres to store data in the correct location.
This commit is contained in:
indra
2024-11-12 20:03:09 +11:00
parent 025c8f6ad1
commit d211c6bbc9

View File

@@ -69,6 +69,11 @@ main() {
chown dokku:dokku /etc/default/dokku
fi
if [[ -n "$DOKKU_LIB_HOST_ROOT" ]]; then
echo "export DOKKU_LIB_HOST_ROOT=$DOKKU_LIB_HOST_ROOT" >>/etc/default/dokku
chown dokku:dokku /etc/default/dokku
fi
if [[ -f /mnt/dokku/plugin-list ]]; then
while read line; do
local plugin_name="$(echo "$line" | awk -F: '{print $1}')"