Sophie

Sophie

distrib > Fedora > 14 > i386 > media > os > by-pkgid > 28e02fd0498042825381b4c7066442c3 > scriptlet

mysql-proxy-0.8.0-1.fc13.i686.rpm

PREIN

/bin/sh
getent group mysql-proxy &>/dev/null || groupadd -r mysql-proxy &>/dev/null
getent passwd mysql-proxy &>/dev/null || \
useradd -r -g mysql-proxy -d / -s /sbin/nologin \
    -c "MySQL-Proxy user" mysql-proxy &>/dev/null || :

PREUN

/bin/sh
if [ "$1" = 0 ] ; then
    /sbin/service mysql-proxy stop > /dev/null 2>&1
    /sbin/chkconfig --del mysql-proxy || :
fi

POSTIN

/bin/sh
ldconfig
/sbin/chkconfig --add mysql-proxy || :

POSTUN

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