diff options
Diffstat (limited to 'extra/postgresql/postgresql.install')
-rw-r--r-- | extra/postgresql/postgresql.install | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extra/postgresql/postgresql.install b/extra/postgresql/postgresql.install index c3fa4fc3e..d65bb6a7f 100644 --- a/extra/postgresql/postgresql.install +++ b/extra/postgresql/postgresql.install @@ -1,4 +1,7 @@ post_install() { + if [ ! -d '/var/lib/postgres' ]; then + mkdir -p '/var/lib/postgres' + fi getent group postgres >/dev/null || groupadd -g 88 postgres getent passwd postgres >/dev/null || useradd -c 'PostgreSQL user' -u 88 -g postgres -d '/var/lib/postgres' -s /bin/bash postgres passwd -l postgres >/dev/null |