From 1bea87f4c20fc1fc9f8ab3cfb089e9ee401db794 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Wed, 4 Apr 2018 15:46:33 +0800 Subject: [PATCH] Fix discourse_dev base image to work with PG 10. --- image/discourse_dev/postgres_dev.template.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/image/discourse_dev/postgres_dev.template.yml b/image/discourse_dev/postgres_dev.template.yml index 19333d3..00085f5 100644 --- a/image/discourse_dev/postgres_dev.template.yml +++ b/image/discourse_dev/postgres_dev.template.yml @@ -1,12 +1,12 @@ run: - replace: - filename: "/etc/postgresql/9.5/main/postgresql.conf" + filename: "/etc/postgresql/10/main/postgresql.conf" from: /#?fullpage_writes *=.*/ to: "fullpage_writes = off" - replace: - filename: "/etc/postgresql/9.5/main/postgresql.conf" + filename: "/etc/postgresql/10/main/postgresql.conf" from: /#?fsync *=.*/ to: "fsync = off" @@ -14,7 +14,7 @@ run: background: true # use fast shutdown for pg stop_signal: INT - cmd: HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/9.5/bin/postmaster -D /etc/postgresql/9.5/main + cmd: HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/10/bin/postmaster -D /etc/postgresql/10/main - exec: background: true -- 2.25.1