mirror of
https://github.com/hoellen/docker-nextcloud.git
synced 2025-04-19 20:19:24 +00:00
fix setup: do not wait for db if using sqlite3
This commit is contained in:
parent
bce0750e6e
commit
eceef9c4ac
@ -55,11 +55,13 @@ cat >> /nextcloud/config/autoconfig.php <<EOF;
|
|||||||
?>
|
?>
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
if [ ${DB_TYPE} != "sqlite3" ]; then
|
||||||
until nc -z "${DB_HOST:-nextcloud-db}" "${DB_PORT:-3306}"
|
until nc -z "${DB_HOST:-nextcloud-db}" "${DB_PORT:-3306}"
|
||||||
do
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user