Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 8600f5c1eb3f2370fb0f6941c3e936fc > scriptlet

dpm-server-mysql-1.8.1.2-2.fc14.i686.rpm

PREIN

/bin/sh
getent group dpmmgr > /dev/null || groupadd -r dpmmgr
getent passwd dpmmgr > /dev/null || useradd -r -g dpmmgr \
    -d /var/lib/dpm -s /bin/bash -c "DPM Manager" dpmmgr
exit 0

PREUN

/bin/sh
export LANG=C

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

POSTIN

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

if [ $1 = 1 ]; then
    if [ -r /etc/rc.d/init.d/dpm ]; then
	/sbin/chkconfig --add dpm
    fi
fi

POSTUN

/bin/sh
export LANG=C

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

Triggers

dpm-mysql < 1.8.1.2-2

/bin/sh
# Restore alternatives removed by dpm-mysql preun
/usr/sbin/update-alternatives --install /usr/sbin/dpm dpm \
	  /usr/lib/dpm-mysql/dpm 20 \
  --slave /usr/share/man/man8/dpm.8.gz dpm.8.gz \
	  /usr/lib/dpm-mysql/dpm.8.gz \
  --slave /usr/share/dpm/DPMCONFIG.templ DPMCONFIG.templ \
	  /usr/lib/dpm-mysql/DPMCONFIG.templ \
  --slave /etc/rc.d/init.d/dpm dpm.init \
	  /etc/dpm-mysql/dpm.init \
  --slave /etc/sysconfig/dpm dpm.conf \
	  /etc/dpm-mysql/dpm.conf \
  --slave /etc/logrotate.d/dpm dpm.logrotate \
	  /etc/dpm-mysql/dpm.logrotate \
  --slave /usr/sbin/dpm-shutdown dpm-shutdown \
	  /usr/lib/dpm-mysql/dpm-shutdown \
  --slave /usr/share/man/man8/dpm-shutdown.8.gz dpm-shutdown.8.gz \
	  /usr/lib/dpm-mysql/dpm-shutdown.8.gz