PREUN
/bin/sh
if [ $1 = 0 ]; then
find /var/lib/tomcat4/server/webapps/admin/WEB-INF/lib \
-name '\[*\]*.jar' -not -type d -exec rm -f {} \;
fi
POSTIN
/bin/sh
### Create automated links
### Since all needed extensions may not have been installed for this jvm
### output is muted
# Try to set a sensible jvm
unset JAVA_HOME
[ -r /etc/tomcat4/tomcat4.conf ] && . /etc/tomcat4/tomcat4.conf
[ -z "$JAVA_HOME" ] && [ -r /etc/java/java.conf ] && . /etc/java/java.conf
[ -z "$JAVA_HOME" ] && JAVA_HOME=/usr/lib/jvm/java
# Remove old automated symlinks
# we do not want old links if a jar is removed from tomcat's layout
find /var/lib/tomcat4/server/webapps/admin/WEB-INF/lib -name '\[*\]*.jar' -not -type d -exec rm -f {} \;
build-jar-repository /var/lib/tomcat4/server/webapps/admin/WEB-INF/lib struts 2>&1