File: nagios-plugins-basic.postrm.in

package info (click to toggle)
nagios-plugins 1.4.5-1etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 6,520 kB
  • ctags: 3,564
  • sloc: ansic: 34,372; perl: 12,573; sh: 10,669; python: 444; makefile: 440; awk: 45
file content (17 lines) | stat: -rw-r--r-- 319 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh -e

BASIC_PLUGINS="@BASIC_PLUGINS@"

if [ "$1" = "purge" ]; then
	if which ucf >/dev/null 2>&1; then
		have_ucf="yes"
	fi
	for f in $BASIC_PLUGINS; do
		rm -f /etc/nagios-plugins/config/${f}.cfg
		if [ "$have_ucf" = "yes" ]; then
			ucf --purge /etc/nagios-plugins/config/${f}.cfg
		fi
	done 
fi

#DEBHELPER#