feat: check if db is available, not just in setup

This commit is contained in:
2023-12-21 20:57:11 +01:00
parent 1ee6c08552
commit 80704341e6
2 changed files with 9 additions and 8 deletions

View File

@ -55,14 +55,6 @@ cat >> /nextcloud/config/autoconfig.php <<EOF;
?>
EOF
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
fi
echo "Starting automatic configuration..."
# Execute setup
(cd /nextcloud; php index.php &>/dev/null)