From 4e439f1bfbf55ed2a02b2b2e12c3274f602a2f04 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 10 Jun 2022 18:55:42 +0200 Subject: [PATCH] Update 99-run.sh --- seafile/rootfs/etc/cont-init.d/99-run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/seafile/rootfs/etc/cont-init.d/99-run.sh b/seafile/rootfs/etc/cont-init.d/99-run.sh index 86a0173ec..2f683951b 100644 --- a/seafile/rootfs/etc/cont-init.d/99-run.sh +++ b/seafile/rootfs/etc/cont-init.d/99-run.sh @@ -79,12 +79,12 @@ case $(bashio::config 'database') in sed -i "s|MYSQL_HOST=db|MYSQL_HOST=$(bashio::services "mysql" "host")|g" "$ENVFILE" sed -i "s|MYSQL_PORT=3306|MYSQL_PORT=$(bashio::services "mysql" "port")|g" "$ENVFILE" sed -i "s|MYSQL_ROOT_PASSWD=secret|MYSQL_USER_PASSWD=$(bashio::services "mysql" "password")|g" "$ENVFILE" - sed -i "s|MYSQL_USER=seafile|MYSQL_USER=$(bashio::services "mysql" "user")|g" "$ENVFILE" + sed -i "s|MYSQL_USER=seafile|MYSQL_USER=$(bashio::services "mysql" "username")|g" "$ENVFILE" sed -i "1a export MYSQL_HOST=$(bashio::services 'mysql' 'host')" /home/seafile/*.sh sed -i "1a export MYSQL_PORT=$(bashio::services 'mysql' 'port')" /home/seafile/*.sh - sed -i "1a export MYSQL_USER_PASSWD=$(bashio::services "mysql" "username")" /home/seafile/*.sh - sed -i "1a export MYSQL_USER=$(bashio::services "mysql" "user")" /home/seafile/*.sh + sed -i "1a export MYSQL_USER=$(bashio::services "mysql" "username")" /home/seafile/*.sh + sed -i "1a export MYSQL_USER_PASSWD=$(bashio::services "mysql" "password")" /home/seafile/*.sh bashio::log.warning "This addon is using the Maria DB addon" bashio::log.warning "Please ensure this is included in your backups"