diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-12-27 23:55:53 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-12-27 23:55:53 +0000 |
commit | 65eeff79fff8a1bfdf67ca51d147384f46f4d5c0 (patch) | |
tree | fbfdff322b28d9a3c37e6e31c94caf1d8e48dac1 /extra/postgresql/postgresql.install | |
parent | d53c44f055929b18d7d1b25f8367ee5836c435fc (diff) |
Fri Dec 27 23:54:04 UTC 2013
Diffstat (limited to 'extra/postgresql/postgresql.install')
-rw-r--r-- | extra/postgresql/postgresql.install | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extra/postgresql/postgresql.install b/extra/postgresql/postgresql.install index 6dbbb6da8..699efe692 100644 --- a/extra/postgresql/postgresql.install +++ b/extra/postgresql/postgresql.install @@ -10,6 +10,10 @@ post_install() { passwd -l postgres >/dev/null fi systemd-tmpfiles --create postgresql.conf + if [ ! -d '/var/lib/postgres/data' ]; then + mkdir -p '/var/lib/postgres/data' + chown postgres:postgres '/var/lib/postgres/data' + fi } post_upgrade() { |