Sophie

Sophie

distrib > * > 2009.0 > i586 > by-pkgid > 87016f10a2bd57e04fb113f8605746cd > scriptlet

tomcat5-admin-webapps-5.5.27-0.3.0.1mdv2009.0.noarch.rpm

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 \
    commons-beanutils commons-collections commons-digester struts struts-taglib \
    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-io commons-fileupload tomcat5/catalina-manager 2>&1