Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > ef620b5cef6f87f8e5357630b7e19121 > scriptlet

dpm-postgres-srmv22-1.8.0.1-7.fc15.i686.rpm

PREUN

/bin/sh
export LANG=C

if [ $1 = 0 ]; then
    /usr/sbin/update-alternatives --display dpm-srmv2.2 | \
	grep currently | grep -q dpm-postgres && \
	/sbin/service dpm-postgres-srmv22 stop > /dev/null 2>&1 || :
    /usr/sbin/update-alternatives --remove dpm-srmv2.2 \
	/usr/lib/dpm-postgres/dpm-srmv2.2
    /sbin/chkconfig --del dpm-postgres-srmv22
fi

POSTIN

/bin/sh
if [ $1 = 1 ]; then
    /sbin/chkconfig --add dpm-postgres-srmv22
fi
/usr/sbin/update-alternatives --install /usr/sbin/dpm-srmv2.2 dpm-srmv2.2 \
	  /usr/lib/dpm-postgres/dpm-srmv2.2 10 \
  --slave /usr/share/man/man8/dpm-srmv2.2.8.gz dpm-srmv2.2.8.gz \
	  /usr/lib/dpm-postgres/dpm-srmv2.2.8.gz \
  --slave /etc/sysconfig/dpm-srmv2.2 dpm-srmv2.2.conf \
	  /etc/dpm-postgres/dpm-srmv2.2.conf \
  --slave /etc/logrotate.d/dpm-srmv2.2 dpm-srmv2.2.logrotate \
	  /etc/dpm-postgres/dpm-srmv2.2.logrotate \
  --initscript dpm-postgres-srmv22

POSTUN

/bin/sh
export LANG=C

if [ $1 -ge 1 ]; then
    /usr/sbin/update-alternatives --display dpm-srmv2.2 | \
	grep currently | grep -q dpm-postgres && \
	/sbin/service dpm-postgres-srmv22 condrestart > /dev/null 2>&1 || :
fi