This file is indexed.

prerm is in jetty9 9.2.23-1.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
set -e

case "$1" in
    remove)
        # Remove auth for jetty to open privileged ports via authbind.
        JETTY_USER="jetty"
        JETTY_UID="`id -u $JETTY_USER`"
        if [ -f "/etc/authbind/byuid/$JETTY_UID" ]; then
                rm -f /etc/authbind/byuid/$JETTY_UID
        fi

        # Remove the default page
        if cmp --silent /var/lib/jetty9/webapps/root/index.html /usr/share/jetty9/default-root/index.html
        then
                rm /var/lib/jetty9/webapps/root/index.html
        fi
        if cmp --silent /var/lib/jetty9/webapps/root/jetty_banner.gif /usr/share/jetty9/default-root/jetty_banner.gif
        then
                rm /var/lib/jetty9/webapps/root/jetty_banner.gif
        fi
    ;;
esac

# Automatically added by dh_installinit/11ubuntu1
if [ -x "/etc/init.d/jetty9" ] && [ "$1" = remove ]; then
	invoke-rc.d jetty9 stop || exit $?
fi
# End automatically added section