Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 3863cae54448fa6c5dae5742db54822a > scriptlet

mysql-proxy-0.8.1-3.fc15.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