File: jserv.prerm

package info (click to toggle)
jserv 1.1-3
  • links: PTS
  • area: contrib
  • in suites: potato
  • size: 4,616 kB
  • ctags: 3,003
  • sloc: sh: 7,718; java: 6,652; ansic: 4,755; makefile: 816; perl: 39; xml: 32
file content (28 lines) | stat: -rw-r--r-- 755 bytes parent folder | download
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
#!/bin/sh -e

#DEBHELPER#

case "$1" in
    upgrade)
        # Nothing to do here
    ;;

    deconfigure|remove|failed-upgrade)
        # Remove the include directive and the LoadModule command
        # from Apache's configuration file and reload the Apache
        # configuration
        if [ -x /etc/init.d/apache ]; then
            /usr/sbin/update-jserv remove-apache /etc/apache/httpd.conf || true
            /etc/init.d/apache reload || true
        fi
        if [ -x /etc/init.d/apache-ssl ]; then
            /usr/sbin/update-jserv remove-apache /etc/apache-ssl/httpd.conf || true
            /etc/init.d/apache-ssl reload || true
        fi
    ;;

    *)
        echo "$0 called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac