From 0522a180c11fc38b3c795124873db40a17cb152e Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 5 Jan 2025 11:05:33 +0100 Subject: [PATCH] Update 99-run.sh --- webtrees/rootfs/etc/cont-init.d/99-run.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/webtrees/rootfs/etc/cont-init.d/99-run.sh b/webtrees/rootfs/etc/cont-init.d/99-run.sh index fce35b96f..86ae4a837 100755 --- a/webtrees/rootfs/etc/cont-init.d/99-run.sh +++ b/webtrees/rootfs/etc/cont-init.d/99-run.sh @@ -150,6 +150,16 @@ echo "python3 /docker-entrypoint.py" cd /var2/www/webtrees || exit 1 if [ ! -f "${DATA_LOCATION}/config.ini.php" ]; then bashio::log.info "First boot : open the UI at $BASE_URL to access the start-up wizard" + if bashio::services.available 'mysql'; then + bashio::log.green "---" + bashio::log.yellow "MariaDB addon was found! If you want to use it, you need to use those values when doing the initial startup wizard, or modify manually the config.ini.php file in /config/data (mapped to /addon_configs/xxx-webtrees/data when accessing using a third party tool)" + bashio::log.blue "Database user : $(bashio::services "mysql" "username")" + bashio::log.blue "Database password : $(bashio::services "mysql" "password")" + bashio::log.blue "Database name : webtrees" + bashio::log.blue "Host-name : $(bashio::services "mysql" "host")" + bashio::log.blue "Port : $(bashio::services "mysql" "port")" + bashio::log.green "---" + fi python3 /docker-entrypoint.py else bashio::log.info "Webtrees started. You can access your webui at : $BASE_URL"