Sophie

Sophie

distrib > Fedora > 14 > i386 > media > updates > by-pkgid > 0dc1b0e53e6bb5a289bc2d53475c26f7 > scriptlet

xtide-2.12-0.6.RC1.fc14.i686.rpm

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