File: postrm.in

package info (click to toggle)
nagios-snmp-plugins 2.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,044 kB
  • sloc: perl: 7,389; sh: 309; makefile: 50
file content (21 lines) | stat: -rw-r--r-- 313 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

PLUGINS="@PLUGINS@"

if [ "$1" = "purge" ]; then
	if which ucf >/dev/null 2>&1; then
		have_ucf="yes"
	fi
	for f in $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#

exit 0