File: nagios-plugins-basic.postrm.in

package info (click to toggle)
nagios-plugins 1.4.15-3squeeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 10,184 kB
  • ctags: 6,100
  • sloc: ansic: 55,405; perl: 13,875; sh: 13,136; makefile: 496; python: 444; awk: 46
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#