From 726cfb26ccea9aeb6bfb44c9e21bbedfdd11ec37 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 10 Jan 2025 17:18:23 +0100 Subject: [PATCH] Update 90-spotweb --- spotweb/rootfs/etc/cont-init.d/90-spotweb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spotweb/rootfs/etc/cont-init.d/90-spotweb b/spotweb/rootfs/etc/cont-init.d/90-spotweb index e2d083eb3..b9d852634 100644 --- a/spotweb/rootfs/etc/cont-init.d/90-spotweb +++ b/spotweb/rootfs/etc/cont-init.d/90-spotweb @@ -92,7 +92,7 @@ do done # Check if database already exists -RESULT=`mysql -u "${username}" -p"${password}" -h "${host}" -P "${port}" --skip-column-names -e "SHOW DATABASES LIKE '${dbname}'"` +RESULT=`/usr/bin/maria -u "${username}" -p"${password}" -h "${host}" -P "${port}" --skip-column-names -e "SHOW DATABASES LIKE '${dbname}'"` if [ "$RESULT" == "$dbname" ]; then # database already exists, do healthcheck with upgrade-db bashio::log.info "Existing database, checking health with upgrade-db...." @@ -104,7 +104,7 @@ if [ "$RESULT" == "$dbname" ]; then else # database does not yet exist bashio::log.info "Creating database with default settings...." - mysql \ + /usr/bin/maria \ -u "${username}" -p"${password}" \ -h "${host}" -P "${port}" \ -e "CREATE DATABASE ${dbname};" @@ -113,7 +113,7 @@ else # set systemtype to public (as we're behind ingress) s6-setuidgid nginx php /app/bin/upgrade-db.php --set-systemtype public # we also set some sane default settings - mysql \ + /usr/bin/maria \ -u "${username}" -p"${password}" \ -h "${host}" -P "${port}" \ -D "${dbname}" \