mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-14 03:09:57 +00:00
cbee084ac1
This playbook just tries to avoid trying to setup a Postgres 10 database with existing 9.x files, as that makes Postgres complain. Due to this, existing installs (still on 9.x) are detected and left on Postgres 9.x. They need to be upgraded to Postgres 10.x manually.
11 lines
338 B
Django/Jinja
11 lines
338 B
Django/Jinja
#!/bin/bash
|
|
|
|
docker run \
|
|
-it \
|
|
--rm \
|
|
--env-file={{ matrix_environment_variables_data_path }}/env-postgres-pgsql-docker \
|
|
{% if not matrix_postgres_use_external %}
|
|
--link=matrix-postgres:{{ matrix_postgres_connection_hostname }} \
|
|
{% endif %}
|
|
{{ docker_postgres_image_to_use }} \
|
|
psql -h {{ matrix_postgres_connection_hostname }} |