Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 054d881012722d9e78ec5f305aa9dd55 > scriptlet

dpm-copy-server-mysql-1.8.3.1-2.fc16.i686.rpm

PREUN

/bin/sh
export LANG=C

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

POSTIN

/bin/sh

/usr/sbin/update-alternatives --install /usr/sbin/dpmcopyd dpmcopyd \
	  /usr/lib/dpm-mysql/dpmcopyd 20 \
  --slave /usr/share/man/man8/dpmcopyd.8.gz dpmcopyd.8.gz \
	  /usr/lib/dpm-mysql/dpmcopyd.8.gz \
  --slave /etc/rc.d/init.d/dpmcopyd dpmcopyd.init \
	  /etc/dpm-mysql/dpmcopyd.init \
  --slave /etc/sysconfig/dpmcopyd dpmcopyd.conf \
	  /etc/dpm-mysql/dpmcopyd.conf \
  --slave /etc/logrotate.d/dpmcopyd dpmcopyd.logrotate \
	  /etc/dpm-mysql/dpmcopyd.logrotate

if [ $1 -eq 1 ]; then
    /sbin/chkconfig --add dpmcopyd
fi

POSTUN

/bin/sh
export LANG=C

if [ $1 -ge 1 ]; then
    if ( /usr/sbin/update-alternatives --display dpmcopyd | \
	grep currently | grep -q dpm-mysql ) ; then
	/sbin/service dpmcopyd condrestart > /dev/null 2>&1 || :
    fi
fi