Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 26d01acc74a1cef2b0b12a0a51dd6eed > scriptlet

postgresql84-server-8.4.18-1.el5_10.x86_64.rpm

PREIN

/bin/sh
groupadd -g 26 -o -r postgres >/dev/null 2>&1 || :
useradd -M -n -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \
	-c "PostgreSQL Server" -u 26 postgres >/dev/null 2>&1 || :

PREUN

/bin/sh
if [ $1 = 0 ] ; then
	/sbin/service postgresql condstop >/dev/null 2>&1
	chkconfig --del postgresql
fi

POSTIN

/bin/sh
chkconfig --add postgresql
/sbin/ldconfig

POSTUN

/bin/sh
/sbin/ldconfig 
if [ $1 -ge 1 ] ; then
	/sbin/service postgresql condrestart >/dev/null 2>&1 || :
fi