1 Commits

Author SHA1 Message Date
be35302f02 Merge 35725bd4eb into cedf7fc4c6 2023-12-22 04:25:13 +01:00

View File

@ -17,8 +17,7 @@ fi
# Check if database is available # Check if database is available
if [ -n "${DB_TYPE}" ] && [ "${DB_TYPE}" != "sqlite3" ]; then if [ -n "${DB_TYPE}" ] && [ "${DB_TYPE}" != "sqlite3" ]; then
DB_PORT=${DB_PORT:-$( [ "${DB_TYPE}" = "pgsql" ] && echo 5432 || echo 3306 )} until nc -z "${DB_HOST:-nextcloud-db}" "${DB_PORT:-3306}"
until nc -z "${DB_HOST:-nextcloud-db}" "${DB_PORT}"
do do
echo "waiting for the database container..." echo "waiting for the database container..."
sleep 1 sleep 1