From a3beb212d1990e05cbe3ffc3abfe7ea5c054e086 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 10 Jun 2022 21:02:17 +0200 Subject: [PATCH] Update 99-run.sh --- seafile/rootfs/etc/cont-init.d/99-run.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/seafile/rootfs/etc/cont-init.d/99-run.sh b/seafile/rootfs/etc/cont-init.d/99-run.sh index 3b0684947..5591ef5cc 100644 --- a/seafile/rootfs/etc/cont-init.d/99-run.sh +++ b/seafile/rootfs/etc/cont-init.d/99-run.sh @@ -85,6 +85,9 @@ case $(bashio::config 'database') in export MYSQL_USER_PASSWD="$(bashio::services "mysql" "password")" && sed -i "1a export MYSQL_USER_PASSWD=$(bashio::services "mysql" "password")" /home/seafile/*.sh export MYSQL_ROOT_PASSWD="$(bashio::services "mysql" "password")" && sed -i "1a export MYSQL_ROOT_PASSWD=$(bashio::services "mysql" "password")" /home/seafile/*.sh + # Allow initial connection + sed -i 's|port=${MYSQL_PORT})|port=${MYSQL_PORT}, user="${MYSQL_USER}", passwd="${MYSQL_USER_PASSWD}")|g' /home/seafile/wait_for_db.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"