From 38260066f579fbc15457d09619dc26a4469b7a62 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 11 Jun 2022 08:33:10 +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 0ff96c73f..66ee8ea93 100644 --- a/seafile/rootfs/etc/cont-init.d/99-run.sh +++ b/seafile/rootfs/etc/cont-init.d/99-run.sh @@ -28,7 +28,7 @@ for KEYS in "${arr[@]}"; do # Use locally export "${KEYS}=${VALUE//[\"\']/}" # Export the variable to run scripts - sed -i "1a export $line" /home/seafile/*.sh 2>/dev/null + sed -i "1a export $line" /home/seafile/*.sh 2>/dev/null find /opt/seafile -name '*.sh' -print0 | xargs -0 sed -i "1a export $line" done @@ -91,8 +91,8 @@ case $(bashio::config 'database') in # Mariadb has no root user sed -i 's|user="root"|user="${MYSQL_USER}"|g' /home/seafile/clean_db.sh - sed -i "s|root|${MYSQL_USER}|g" /opt/seafile/seafile-server-"$SEAFILE_SERVER_VERSION"/setup-seafile-mysql.* - sed -i "s|root|${MYSQL_USER}|g" "/root/*" + sed -i "s|\'root\'|\'${MYSQL_USER}\'|g" /opt/seafile/seafile-server-"$SEAFILE_SERVER_VERSION"/setup-seafile-mysql.sh + sed -i "s|\'root\'|\'${MYSQL_USER}\'|g" /opt/seafile/seafile-server-"$SEAFILE_SERVER_VERSION"/setup-seafile-mysql.py # Informations bashio::log.warning "This addon is using the Maria DB addon"