Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > os > by-pkgid > e2c6a44c23c0ba0345d028bd99fb91a3 > scriptlet

anyterm-1.1.29-8.fc13.x86_64.rpm

PREIN

/bin/sh
# create anyterm group / user
getent group anyterm >/dev/null || \
   /usr/sbin/groupadd -r anyterm
getent passwd anyterm > /dev/null || \
  /usr/sbin/useradd  -r -s /sbin/nologin -d /dev/null \
  -M -c 'Anyterm user' -g anyterm anyterm
exit 0

PREUN

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

POSTIN

/bin/sh
# adds the proper /etc/rc*.d links for the script
/sbin/chkconfig --add anyterm