summaryrefslogtreecommitdiff
path: root/extra/postgresql
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-05-04 12:58:32 +0000
committerroot <root@rshg047.dnsready.net>2011-05-04 12:58:32 +0000
commit9780d07c31b22125ad7ecba4e281ff41194f95be (patch)
tree2336cb3e1bd98fe4b7631eb175c25f90a243815a /extra/postgresql
parentddb2605f6bccbdb398f3937ff21e4688915a450d (diff)
Wed May 4 12:58:31 UTC 2011
Diffstat (limited to 'extra/postgresql')
-rw-r--r--extra/postgresql/PKGBUILD4
-rw-r--r--extra/postgresql/postgresql.install3
2 files changed, 5 insertions, 2 deletions
diff --git a/extra/postgresql/PKGBUILD b/extra/postgresql/PKGBUILD
index 5c5ffd2db..a0d0e3cc5 100644
--- a/extra/postgresql/PKGBUILD
+++ b/extra/postgresql/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 120393 2011-04-23 18:29:42Z dan $
+# $Id: PKGBUILD 122182 2011-05-02 17:54:57Z dan $
# Maintainer: Dan McGee <dan@archlinux.org>
pkgbase=postgresql
pkgname=('postgresql-libs' 'postgresql-docs' 'postgresql')
pkgver=9.0.4
-pkgrel=2
+pkgrel=3
arch=('i686' 'x86_64')
url="http://www.postgresql.org"
license=('custom:PostgreSQL')
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