Sophie

Sophie

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

voms-server-1.9.18.1-1.fc14.i686.rpm

PREIN

/bin/sh
getent group voms >/dev/null || groupadd -r voms
getent passwd voms >/dev/null || useradd -r -g voms \
    -d /etc/voms -s /sbin/nologin -c "VOMS Server Account" voms
exit 0

PREUN

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

POSTIN

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

POSTUN

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