fix env file
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
Robert Kaussow 2023-08-06 16:28:01 +02:00
parent 17e78db3d3
commit 1059950122
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 2 additions and 3 deletions

View File

@ -15,8 +15,7 @@ def test_postgres_running_and_enabled(host):
def test_postgres_auth(host):
login = host.run(
"source /etc/containers/systemd/postgres.env;"
"podman exec --env PGPASSWORD=$POSTGRES_PASSWORD systemd-postgres psql -U$POSTGRES_USER -c 'select 1' -q $POSTGRES_DB" # noqa :E501
"podman exec --env PGPASSWORD=postgres systemd-postgres psql -Upostgres -c 'select 1' -q postgres" # noqa :E501
)
assert login.succeeded

View File

@ -8,5 +8,5 @@ POSTGRES_DB={{ postgres_db }}
POSTGRES_HOST_AUTH_METHOD={{ postgres_host_auth_method }}
{% endif %}
{% if postgres_initdb_args | length > 0 %}
POSTGRES_INITDB_ARGS="{{ postgres_initdb_args | join(' ') }}"
POSTGRES_INITDB_ARGS={{ postgres_initdb_args | join(" ") }}
{% endif %}