From: Sam Date: Tue, 10 Mar 2015 04:21:43 +0000 (+1100) Subject: fix pg missing dir X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4e8c5fadb6b7a2cb8357737d6b9e19f0c3189a51;p=discourse_docker.git fix pg missing dir --- diff --git a/templates/postgres.template.yml b/templates/postgres.template.yml index d851b8e..21bdfbc 100644 --- a/templates/postgres.template.yml +++ b/templates/postgres.template.yml @@ -20,6 +20,8 @@ run: - exec: socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1 - exec: rm -fr /shared/postgres_run/.s* - exec: rm -fr /shared/postgres_run/*.pid + - exec: mkdir -p /shared/postgres_run/9.3-main.pg_stat_tmp + - exec: chown postgres:postgres /shared/postgres_run/9.3-main.pg_stat_tmp - file: path: /etc/service/postgres/run chmod: "+x"