From 31694ca314814e7ffadda297bdc3386bf74f297d Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Fri, 21 Oct 2022 21:36:27 -0300 Subject: [PATCH] Create database to autotest Followed: https://github.com/docker-library/docs/blob/master/postgres/README.md#postgres_db Signed-off-by: Vitor Mattos --- autotest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autotest.sh b/autotest.sh index 00e6b96836b..f748cbbed12 100755 --- a/autotest.sh +++ b/autotest.sh @@ -307,7 +307,7 @@ function execute_tests { if [ "$DB" == "pgsql" ] ; then if [ ! -z "$USEDOCKER" ] ; then echo "Fire up the postgres docker" - DOCKER_CONTAINER_ID=$(docker run -e POSTGRES_USER="$DATABASEUSER" -e POSTGRES_PASSWORD=owncloud -d postgres) + DOCKER_CONTAINER_ID=$(docker run -e POSTGRES_DB="$DATABASENAME" -e POSTGRES_USER="$DATABASEUSER" -e POSTGRES_PASSWORD=owncloud -d postgres) DATABASEHOST=$(docker inspect --format="{{.NetworkSettings.IPAddress}}" "$DOCKER_CONTAINER_ID") echo "Waiting for Postgres initialisation ..."