PREUN
/bin/sh
if [ $1 = 0 ]; then
find /var/lib/tomcat5/server/webapps/*/WEB-INF/lib \
-name '\[*\]*.jar' -not -type d | xargs /bin/rm -f
fi
POSTIN
/bin/sh
# Remove old automated symlinks
find /var/lib/tomcat5/server/webapps/admin/WEB-INF/lib -name '\[*\]*.jar' -type d \
| xargs /bin/rm -f
# Create automated links - since all needed extensions may not have been
# installed for this jvm output is muted
build-jar-repository /var/lib/tomcat5/server/webapps/admin/WEB-INF/lib \
struts tomcat5/catalina-admin 2>&1
build-jar-repository /var/lib/tomcat5/server/webapps/host-manager/WEB-INF/lib \
tomcat5/catalina-host-manager 2>&1
build-jar-repository /var/lib/tomcat5/server/webapps/manager/WEB-INF/lib \
commons-fileupload tomcat5/catalina-manager 2>&1
if [ -x /usr/bin/rebuild-gcj-db ]; then /usr/bin/rebuild-gcj-db || true ; fi
POSTUN
/bin/sh
if [ -x /usr/bin/rebuild-gcj-db ]; then /usr/bin/rebuild-gcj-db || true ; fi