Sophie

Sophie

distrib > Fedora > 13 > x86_64 > by-pkgid > fb5433d02a17ba2e6ed8f2143cb12334 > scriptlet

newscache-1.2-0.11.rc6.fc12.x86_64.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