diff --git a/seafile/rootfs/etc/cont-init.d/99-run.sh b/seafile/rootfs/etc/cont-init.d/99-run.sh index bbc2ea048..20dc2159d 100644 --- a/seafile/rootfs/etc/cont-init.d/99-run.sh +++ b/seafile/rootfs/etc/cont-init.d/99-run.sh @@ -79,8 +79,9 @@ 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 "1a export MYSQL_HOST=$(bashio::services 'mysql' 'host')" wait_for_db.sh - sed -i "1a export MYSQL_PORT=$(bashio::services 'mysql' 'port')" wait_for_db.sh + sed -i "1a export MYSQL_HOST=$(bashio::services 'mysql' 'host')" *.sh + sed -i "1a export MYSQL_PORT=$(bashio::services 'mysql' 'port')" *.sh + sed -i "1a export MYSQL_USER_PASSWD=$(bashio::services "mysql" "password")" *.sh bashio::log.warning "This addon is using the Maria DB addon" bashio::log.warning "Please ensure this is included in your backups"