mirror of
https://github.com/nextcloud/server.git
synced 2026-04-23 07:08:34 -04:00
Merge pull request #34736 from nextcloud/bugfix/autotest-with-postgresql
Fix autotest creating PostgreSQL database before install
This commit is contained in:
commit
9ba3f264c0
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ..."
|
||||
|
|
|
|||
Loading…
Reference in a new issue