diff options
author | Vitor Mattos <vitor@php.rio> | 2022-10-21 21:36:27 -0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2022-10-21 21:36:27 -0300 |
commit | 32b1d4fc8e61d5ed4b355c8d0393b069590e339a (patch) | |
tree | 7777b434489bdc1eed0a9e4ddd730671d57d7a8e /autotest.sh | |
parent | 47da08fe850b374d30ef68c55775600747bbd35c (diff) | |
download | nextcloud-server-32b1d4fc8e61d5ed4b355c8d0393b069590e339a.tar.gz nextcloud-server-32b1d4fc8e61d5ed4b355c8d0393b069590e339a.zip |
Create database to autotest
Followed:
https://github.com/docker-library/docs/blob/master/postgres/README.md#postgres_db
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'autotest.sh')
-rwxr-xr-x | autotest.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 ..." |