aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2022-10-27 13:07:27 +0200
committerGitHub <noreply@github.com>2022-10-27 13:07:27 +0200
commit9ba3f264c0df619f2ee9c8edde0dfa291764f910 (patch)
tree7be531e66e6def171e36c7db08a90e3d8b34f4a8
parenta0dea4639f0481454013c0f8f90f03e0f7ee9fce (diff)
parent32b1d4fc8e61d5ed4b355c8d0393b069590e339a (diff)
downloadnextcloud-server-9ba3f264c0df619f2ee9c8edde0dfa291764f910.tar.gz
nextcloud-server-9ba3f264c0df619f2ee9c8edde0dfa291764f910.zip
Merge pull request #34736 from nextcloud/bugfix/autotest-with-postgresql
Fix autotest creating PostgreSQL database before install
-rwxr-xr-xautotest.sh2
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 ..."