File: icinga-idoutils.postrm

package info (click to toggle)
icinga 1.14.2+ds-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 49,264 kB
  • sloc: ansic: 108,564; sql: 9,656; sh: 4,945; perl: 3,439; makefile: 1,213; php: 581; xml: 104
file content (27 lines) | stat: -rw-r--r-- 498 bytes parent folder | download | duplicates (5)
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
#!/bin/sh

set -e
#set -x

if [ -f /usr/share/debconf/confmodule ]; then
        . /usr/share/debconf/confmodule
fi
if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
        . /usr/share/dbconfig-common/dpkg/postrm
        dbc_go icinga-idoutils $@
fi

if [ "$1" = "purge" ]; then
	rm -f /etc/icinga/ido2db.cfg
    if which ucf >/dev/null; then
        ucf --purge /etc/icinga/ido2db.cfg
    fi
	db_purge
fi

if [ "$1" = "purge" ] ; then
	update-rc.d ido2db remove >/dev/null
fi

#DEBHELPER#