Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > ed2127f1cf21b9fe6745dd3520424dfd > scriptlet

newscache-1.2-0.11.rc6.fc12.i686.rpm

PREIN

/bin/sh

getent group news >/dev/null || groupadd -r news
getent passwd news >/dev/null || \
    useradd -r -g news -d /etc/news -s /sbin/nologin -c 'News user' news
exit 0

PREUN

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

POSTIN

/bin/sh

/sbin/chkconfig --add newscache

POSTUN

/bin/sh
if [ $1 != 0 ]; then
   /sbin/service newscache condrestart >/dev/null 2>&1
fi