mirror of
https://github.com/hoellen/docker-nextcloud.git
synced 2025-04-22 13:39:25 +00:00
Compare commits
1 Commits
d3c19a637b
...
be35302f02
Author | SHA1 | Date | |
---|---|---|---|
|
be35302f02 |
@ -17,8 +17,7 @@ fi
|
||||
|
||||
# Check if database is available
|
||||
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}"
|
||||
until nc -z "${DB_HOST:-nextcloud-db}" "${DB_PORT:-3306}"
|
||||
do
|
||||
echo "waiting for the database container..."
|
||||
sleep 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user