use a dummy database name for the default postgres database name

For some reason the docker image does not setup the permissions correctly,
by using a different name the nextcloud installer will create the database instead
with the correct permissions

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2018-09-17 18:19:29 +02:00 committed by Morris Jobke
parent 99c5005114
commit 2e328c1050
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
1 changed files with 3 additions and 1 deletions

View File

@ -313,7 +313,7 @@ pipeline:
image: nextcloudci/php7.1:php7.1-15 image: nextcloudci/php7.1:php7.1-15
commands: commands:
- sleep 10 # gives the database enough time to initialize - sleep 10 # gives the database enough time to initialize
- NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql - POSTGRES=${POSTGRES} NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
when: when:
matrix: matrix:
DB: postgres DB: postgres
@ -864,6 +864,7 @@ services:
image: postgres:9 image: postgres:9
environment: environment:
- POSTGRES_USER=oc_autotest - POSTGRES_USER=oc_autotest
- POSTGRES_DB=oc_autotest_dummy
- POSTGRES_PASSWORD=owncloud - POSTGRES_PASSWORD=owncloud
tmpfs: tmpfs:
- /var/lib/postgresql/data - /var/lib/postgresql/data
@ -875,6 +876,7 @@ services:
image: postgres:10 image: postgres:10
environment: environment:
- POSTGRES_USER=oc_autotest - POSTGRES_USER=oc_autotest
- POSTGRES_DB=oc_autotest_dummy
- POSTGRES_PASSWORD=owncloud - POSTGRES_PASSWORD=owncloud
tmpfs: tmpfs:
- /var/lib/postgresql/data - /var/lib/postgresql/data