Sophie

Sophie

distrib > Fedora > 14 > i386 > media > os > by-pkgid > 5a9320780917ac2d0249937100d03067 > scriptlet

dpm-postgres-srmv1-1.7.4.7-3.fc14.i686.rpm

PREUN

/bin/sh
export LANG=C

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

POSTIN

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

POSTUN

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