Sophie

Sophie

distrib > Mageia > 1 > x86_64 > by-pkgid > 46f486f474a088eb2cc37d2f257b58e3 > scriptlet

tomcat5-admin-webapps-5.5.31-3.mga1.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 \
    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