File: zabbix-server-mysql.postrm

package info (click to toggle)
zabbix 1%3A1.1.4-10etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 7,964 kB
  • ctags: 8,876
  • sloc: php: 28,690; ansic: 27,593; sql: 5,639; sh: 4,771; cpp: 4,632; makefile: 340; python: 238
file content (35 lines) | stat: -rw-r--r-- 780 bytes parent folder | download | duplicates (3)
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
30
31
32
33
34
35
#!/bin/sh -e

if [ -f /usr/share/debconf/confmodule ]; then
    . /usr/share/debconf/confmodule
fi

if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
    dbc_dbtypes="mysql"
    . /usr/share/dbconfig-common/dpkg/postrm
    dbc_go zabbix-server-mysql $@
fi

case "$1" in
    failed-upgrade|abort-install|abort-upgrade|disappear|upgrade)
    ;;
    remove)
    ;;
    purge)
        rm -fr /var/log/zabbix-server
        rm -fr /var/run/zabbix-server
        rm -f /etc/zabbix/zabbix_server.conf
        ucf --purge /etc/zabbix/zabbix_server.conf || true
    ;;

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

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0