Sophie

Sophie

distrib > Fedora > 14 > i386 > media > os > by-pkgid > c3b3c7daaab14cb024107cbbf5f420ee > scriptlet

tinyproxy-1.8.2-1.fc14.i686.rpm

PREIN

/bin/sh
if [ $1 == 1 ]; then
    /usr/sbin/useradd -c "tinyproxy user" -s /bin/false -r -d /var/run/tinyproxy tinyproxy 2>/dev/null || :
fi

PREUN

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

POSTIN

/bin/sh
if [ $1 == 1 ]; then
    /sbin/chkconfig --add tinyproxy
fi

POSTUN

/bin/sh
if [ $1 == 2 ]; then
    /sbin/service tinyproxy condrestart > /dev/null 2>&1 || :
fi