Sophie

Sophie

distrib > Altlinux > 4.1 > i586 > media > core > by-pkgid > e2ed169374c55d86828b14bc2dfb046f > scriptlet

tomcat5-webapps-admin-5.5.26-alt2.2_1jpp5.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
[ $1 != 0 ] || /sbin/service tomcat5 condrestart

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
/sbin/service tomcat5 condrestart