File: icinga-common.postrm

package info (click to toggle)
icinga 1.14.2+ds-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, 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 (23 lines) | stat: -rw-r--r-- 551 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh -e

# some shorthands for sanity
en="/etc/icinga"
enc="/etc/icinga/objetcs"
usn="/usr/share/icinga"

case "$1" in
  remove)
  	;;
  purge)
        for file in $en/resource.cfg /var/log/icinga /var/run/icinga \
	            /var/lib/icinga /var/lib/icinga/spool \
		    /var/lib/icinga/spool/checkresults \
		    /var/cache/icinga /var/lib/icinga/rw; do
	    dpkg-statoverride --force --remove $file 2>/dev/null || true
	done
        rm -rf /var/run/icinga /var/log/icinga /var/lib/icinga \
	       /var/cache/icinga
    ;;
esac

#DEBHELPER#