PREIN
/bin/sh
useradd -M -o -r -d /var/lib/pgsql -s /bin/bash \ -c "PostgreSQL Server" -u 40 postgres >/dev/null 2>&1 || :
PREUN
/bin/sh
if [ $1 = 0 ] ; then chkconfig --del postgresql fi
POSTUN
/bin/sh
/sbin/ldconfig if [ $1 = 0 ] ; then userdel postgres >/dev/null 2>&1 || : fi