fix setup: do not wait for db if using sqlite3

This commit is contained in:
Wonderfall 2022-03-06 16:38:27 +01:00 committed by hoellen
parent bce0750e6e
commit eceef9c4ac

View File

@ -55,11 +55,13 @@ cat >> /nextcloud/config/autoconfig.php <<EOF;
?> ?>
EOF EOF
until nc -z "${DB_HOST:-nextcloud-db}" "${DB_PORT:-3306}" if [ ${DB_TYPE} != "sqlite3" ]; then
do until nc -z "${DB_HOST:-nextcloud-db}" "${DB_PORT:-3306}"
do
echo "waiting for the database container..." echo "waiting for the database container..."
sleep 1 sleep 1
done done
fi
echo "Starting automatic configuration..." echo "Starting automatic configuration..."
# Execute setup # Execute setup