Sophie

Sophie

distrib > CentOS > 6 > i386 > media > updates > by-pkgid > d73c0d8bbd4bcbca3822f4fd008b8d9e > scriptlet

postgresql-server-8.4.5-1.el6_0.2.i686.rpm

PREIN

/bin/sh
/usr/sbin/groupadd -g 26 -o -r postgres >/dev/null 2>&1 || :
/usr/sbin/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 stop >/dev/null 2>&1
	/sbin/chkconfig --del postgresql
fi

POSTIN

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

POSTUN

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