зеркало из https://github.com/nextcloud/server.git
Wait for Postgres to be available
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Родитель
9d8e9b1efb
Коммит
e696b92297
|
@ -306,6 +306,12 @@ function execute_tests {
|
|||
|
||||
echo "Postgres is up."
|
||||
else
|
||||
echo "Waiting for Postgres to be available ..."
|
||||
if ! apps/files_external/tests/env/wait-for-connection $DATABASEHOST 5432 60; then
|
||||
echo "[ERROR] Waited 60 seconds, no response" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$DRONE" ] ; then # no need to drop the DB when we are on CI
|
||||
dropdb -U "$DATABASEUSER" "$DATABASENAME" || true
|
||||
fi
|
||||
|
|
Загрузка…
Ссылка в новой задаче