From 97b59cd4c5d1e30a63ffe572f9f6b4bc475c5e17 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 1 Jul 2022 22:22:54 +0200 Subject: [PATCH] Update 99-run.sh --- tandoor_recipes/rootfs/etc/cont-init.d/99-run.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tandoor_recipes/rootfs/etc/cont-init.d/99-run.sh b/tandoor_recipes/rootfs/etc/cont-init.d/99-run.sh index 4bc1c563e..687f33423 100644 --- a/tandoor_recipes/rootfs/etc/cont-init.d/99-run.sh +++ b/tandoor_recipes/rootfs/etc/cont-init.d/99-run.sh @@ -58,6 +58,14 @@ case $(bashio::config 'DB_TYPE') in export POSTGRES_PASSWORD=$(bashio::services "mysql" "password") && bashio::log.blue "POSTGRES_PASSWORD=$POSTGRES_PASSWORD" export POSTGRES_DB="tandoor" && bashio::log.blue "POSTGRES_DB=tandoor" +sed -i "s|\${DB_ENGINE}|${DB_ENGINE|g" /opt/recipes/boot.sh +sed -i "s|\${POSTGRES_HOST}|${POSTGRES_HOST}|g" /opt/recipes/boot.sh +sed -i "s|\${POSTGRES_PORT}|${POSTGRES_PORT}|g" /opt/recipes/boot.sh +sed -i "s|\${POSTGRES_USER}|${POSTGRES_USER}|g" /opt/recipes/boot.sh +sed -i "s|\${POSTGRES_PASSWORD}|${POSTGRES_PASSWORD}|g" /opt/recipes/boot.sh +sed -i "s|\${POSTGRES_DB}|${POSTGRES_DB}|g" /opt/recipes/boot.sh + + bashio::log.warning "This addon is using the Maria DB addon" bashio::log.warning "Please ensure this is included in your backups" bashio::log.warning "Uninstalling the MariaDB addon will remove any data"