From 9fa46024de72df45847db95fdb184df5ca98bfef Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 6 Dec 2024 16:15:16 +0100 Subject: [PATCH] Update 99-run.sh --- monica/rootfs/etc/cont-init.d/99-run.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/monica/rootfs/etc/cont-init.d/99-run.sh b/monica/rootfs/etc/cont-init.d/99-run.sh index 76ca74e57..87f67f22e 100755 --- a/monica/rootfs/etc/cont-init.d/99-run.sh +++ b/monica/rootfs/etc/cont-init.d/99-run.sh @@ -16,6 +16,7 @@ case "$database" in # Use sqlite sqlite) export DB_DATABASE="/config/database.sqlite" + export DB_CONNECTION=sqlite touch "$DB_DATABASE" chown www-data:www-data "$DB_DATABASE" bashio::log.blue "Using $DB_DATABASE" @@ -24,6 +25,7 @@ case "$database" in # Use Mariadb_addon MariaDB_addon) # Use MariaDB + export DB_CONNECTION=mysql bashio::log.green "Using MariaDB addon. Requirements: running MariaDB addon. Discovering values..." if ! bashio::services.available 'mysql'; then bashio::log.fatal "Local database access should be provided by the MariaDB addon" @@ -44,6 +46,7 @@ case "$database" in # Use Mariadb_addon Mysql_external) + export DB_CONNECTION=mysql for var in DB_DATABASE DB_HOST DB_PASSWORD DB_PORT DB_USERNAME; do # Verify all variables are set if ! bashio::config.has_value "$var"; then