PREIN
/bin/sh
getent group xttpd &>/dev/null || \
/usr/sbin/groupadd -r xttpd
getent passwd xttpd &> /dev/null || \
/usr/sbin/useradd \
-c "XTide web server" \
-g xttpd \
-d /etc/xtide \
-r \
-s /sbin/nologin \
xttpd 2>/dev/null
exit 0
PREUN
/bin/sh
if [ $1 = 0 ] ; then
/sbin/service xttpd stop &>/dev/null
/sbin/chkconfig --del xttpd
fi
exit 0
POSTIN
/bin/sh
touch --no-create /usr/share/icons/hicolor || :
/sbin/chkconfig --add xttpd
exit 0
POSTUN
/bin/sh
if [ $1 -ge 1 ] ; then
/sbin/service xttpd condrestart &>/dev/null || :
fi
[ $1 -eq 0 ] || exit 0
touch --no-create /usr/share/icons/hicolor || :
/usr/bin/gtk-update-icon-cache --quiet /usr/share/icons/hicolor || :
exit 0
POSTTRANS
/bin/sh
/usr/bin/gtk-update-icon-cache --quiet /usr/share/icons/hicolor || :
exit 0