Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 9ab9a05039fa4e680c29e9e5addc5e96 > scriptlet

myproxy-server-5.3-3.fc14.i686.rpm

PREIN

/bin/sh
getent group myproxy >/dev/null || groupadd -r myproxy
getent passwd myproxy >/dev/null || \
useradd -r -g myproxy -d /var/lib/myproxy -s /sbin/nologin \
   -c "User to run the MyProxy service" myproxy
exit 0

PREUN

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

POSTIN

/bin/sh
/sbin/chkconfig --add myproxy-server

POSTUN

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