[arch-commits] Commit in postgresql/trunk (PKGBUILD postgresql.install)
Dan McGee
dan at archlinux.org
Mon May 2 17:54:58 UTC 2011
Date: Monday, May 2, 2011 @ 13:54:57
Author: dan
Revision: 122182
Fix FS#23948, homedir may not exist
Modified:
postgresql/trunk/PKGBUILD
postgresql/trunk/postgresql.install
--------------------+
PKGBUILD | 2 +-
postgresql.install | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2011-05-02 17:31:08 UTC (rev 122181)
+++ PKGBUILD 2011-05-02 17:54:57 UTC (rev 122182)
@@ -4,7 +4,7 @@
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')
Modified: postgresql.install
===================================================================
--- postgresql.install 2011-05-02 17:31:08 UTC (rev 122181)
+++ postgresql.install 2011-05-02 17:54:57 UTC (rev 122182)
@@ -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
More information about the arch-commits
mailing list