summaryrefslogtreecommitdiffstats
path: root/extra/libpostgresql/nutyx-01.patch
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-06-08 20:40:17 +0200
committertnut <thierryn1 at hispeed dot ch>2010-06-08 20:40:17 +0200
commit8ee280630362fa579904b5ac0e1996a11c9d4013 (patch)
tree1ea9595795611e6bda54adb761a94fd8f0b3a32f /extra/libpostgresql/nutyx-01.patch
parent58f9aeb25ba26dc0dfbea65f95a201e3b0948401 (diff)
downloadnutyx-pakxe-8ee280630362fa579904b5ac0e1996a11c9d4013.tar.gz
nutyx-pakxe-8ee280630362fa579904b5ac0e1996a11c9d4013.tar.bz2
nutyx-pakxe-8ee280630362fa579904b5ac0e1996a11c9d4013.tar.xz
nutyx-pakxe-8ee280630362fa579904b5ac0e1996a11c9d4013.zip
ajout de libpostgresql#8.4.4-1
Diffstat (limited to 'extra/libpostgresql/nutyx-01.patch')
-rw-r--r--extra/libpostgresql/nutyx-01.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/extra/libpostgresql/nutyx-01.patch b/extra/libpostgresql/nutyx-01.patch
new file mode 100644
index 000000000..a1b1585d9
--- /dev/null
+++ b/extra/libpostgresql/nutyx-01.patch
@@ -0,0 +1,21 @@
+--- blfs-bootscripts-20090302/blfs/init.d/postgresql.original 2010-01-20 20:34:28.000000000 +0000
++++ blfs-bootscripts-20090302/blfs/init.d/postgresql 2010-01-20 20:37:49.000000000 +0000
+@@ -10,6 +10,18 @@
+ . /etc/sysconfig/rc
+ . $rc_functions
+
++newgroup=postgres
++newuser=postgres
++newid=40
++
++# check for mysql group or add one
++getent group $newgroup > /dev/null || /usr/sbin/groupadd -g $newid $newgroup
++
++# check for mysql user or add one
++getent passwd $newuser > /dev/null || /usr/sbin/useradd -g $newgroup \
++-u $newid -d /dev/null \
++-s /bin/false -c "PostgreSQL Server" $newuser
++
+ case "$1" in
+ start)
+ boot_mesg "Starting PostgreSQL daemon..."