From 6e6b3d0c85e25a99d2669fb9abf752d5f9e9b9e3 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 5 Jan 2025 21:02:49 +0100 Subject: [PATCH] Create launcher.sh --- webtrees/rootfs/etc/scripts/launcher.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 webtrees/rootfs/etc/scripts/launcher.sh diff --git a/webtrees/rootfs/etc/scripts/launcher.sh b/webtrees/rootfs/etc/scripts/launcher.sh new file mode 100644 index 000000000..b3cfb3e87 --- /dev/null +++ b/webtrees/rootfs/etc/scripts/launcher.sh @@ -0,0 +1,15 @@ +#!/usr/bin/with-contenv bashio +# shellcheck shell=bash +set -e + +if bashio::services.available 'mysql'; then + bashio::log.green "---" + bashio::log.yellow "MariaDB addon discovered on your system. 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 "Host-name : $(bashio::services "mysql" "host")" + bashio::log.blue "Port : $(bashio::services "mysql" "port")" + 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 "Database prefix : wt_" + bashio::log.green "---" +fi