Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > contrib-release > by-pkgid > c3bc63f893e3f8ac9c11ab7bab09a6e1 > scriptlet

tomcat6-6.0.18-8.1.1mdv2009.1.noarch.rpm

PREIN

/bin/sh
# add the tomcat user and group
/usr/sbin/groupadd -g 91 -r tomcat 2>/dev/null || :
/usr/sbin/useradd -c "Apache Tomcat" -u 91 -g tomcat \
    -s /bin/sh -r -d /usr/share/tomcat6 tomcat 2>/dev/null || :

PREUN

/bin/sh
# clean tempdir and workdir on removal or upgrade
/bin/rm -rf /var/cache/tomcat6/work/* /var/cache/tomcat6/temp/*
if [ "$1" = "0" ]; then
    /etc/init.d/tomcat6 stop >/dev/null 2>&1
    /sbin/chkconfig --del tomcat6
fi

POSTIN

/bin/sh
# install but don't activate
/sbin/chkconfig --add tomcat6