From 62d1b13c91f7b46e2713f1f67c1b493fa3f50693 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Tue, 29 May 2018 11:23:17 +0300 Subject: [PATCH] Minor improvements to the Postgres-upgrade tasks --- roles/matrix-server/tasks/upgrade_postgres.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/matrix-server/tasks/upgrade_postgres.yml b/roles/matrix-server/tasks/upgrade_postgres.yml index db6d75ac..8337d6eb 100644 --- a/roles/matrix-server/tasks/upgrade_postgres.yml +++ b/roles/matrix-server/tasks/upgrade_postgres.yml @@ -79,7 +79,7 @@ command: | /usr/bin/docker run --rm --name matrix-postgres-dump \ --link matrix-postgres:postgres \ - --env-file=/matrix/environment-variables/env-postgres-pgsql-docker \ + --env-file={{ matrix_environment_variables_data_path }}/env-postgres-pgsql-docker \ -v {{ postgres_dump_dir }}:/out \ {{ docker_postgres_image_to_use }} pg_dump -h postgres {{ matrix_postgres_db_name }} -f /out/{{ postgres_dump_name }} @@ -107,9 +107,9 @@ command: | /usr/bin/docker run --rm --name matrix-postgres-import \ --link matrix-postgres:postgres \ - --env-file=/matrix/environment-variables/env-postgres-pgsql-docker \ + --env-file={{ matrix_environment_variables_data_path }}/env-postgres-pgsql-docker \ -v {{ postgres_dump_dir }}:/in:ro \ - {{ docker_postgres_image_to_use }} psql -h postgres -f /in/{{ postgres_dump_name }} + {{ docker_postgres_image_latest }} psql -h postgres -f /in/{{ postgres_dump_name }} - name: Delete Postgres database dump file file: