fix pg missing dir
authorSam <sam.saffron@gmail.com>
Tue, 10 Mar 2015 04:21:43 +0000 (15:21 +1100)
committerSam <sam.saffron@gmail.com>
Tue, 10 Mar 2015 04:21:43 +0000 (15:21 +1100)
templates/postgres.template.yml

index d851b8e22f4038f928941a5a2a8009595769efa9..21bdfbc7be40d6dde3dcde4a3fca2a709d2d9b9e 100644 (file)
@@ -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"