waiting for the database container on setup

This commit is contained in:
Jan Wagner 2022-01-12 18:17:09 +01:00 committed by hoellen
parent 9b0a84a36f
commit 9851eb52ee

View File

@ -55,6 +55,12 @@ cat >> /nextcloud/config/autoconfig.php <<EOF;
?>
EOF
until nc -z "${DB_HOST:-nextcloud-db}" "${DB_PORT:-3306}"
do
echo "waiting for the database container..."
sleep 1
done
echo "Starting automatic configuration..."
# Execute setup
(cd /nextcloud; php index.php &>/dev/null)