From eceef9c4ac5677495f238d0eaf9d26b3e60e8bf6 Mon Sep 17 00:00:00 2001 From: Wonderfall Date: Sun, 6 Mar 2022 16:38:27 +0100 Subject: [PATCH] fix setup: do not wait for db if using sqlite3 --- rootfs/usr/local/bin/setup.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rootfs/usr/local/bin/setup.sh b/rootfs/usr/local/bin/setup.sh index fef6342..2d962a4 100755 --- a/rootfs/usr/local/bin/setup.sh +++ b/rootfs/usr/local/bin/setup.sh @@ -55,11 +55,13 @@ cat >> /nextcloud/config/autoconfig.php < EOF -until nc -z "${DB_HOST:-nextcloud-db}" "${DB_PORT:-3306}" -do +if [ ${DB_TYPE} != "sqlite3" ]; then + until nc -z "${DB_HOST:-nextcloud-db}" "${DB_PORT:-3306}" + do echo "waiting for the database container..." sleep 1 -done + done +fi echo "Starting automatic configuration..." # Execute setup