mirror of
https://github.com/hoellen/docker-nextcloud.git
synced 2026-10-15 07:42:34 +00:00
fix setup: do not wait for db if using sqlite3
This commit is contained in:
1 parent
bce0750e6e
commit
eceef9c4ac
1 file changed
+5
-3
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user