summaryrefslogtreecommitdiff
path: root/extra/postgresql
diff options
context:
space:
mode:
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