summaryrefslogtreecommitdiffstats
path: root/debian/functions
blob: a902e121061a59456782402a13534d969331968e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# functions for use by nagios plugins maintainer scripts

npconfdir=/etc/nagios-plugins/config

# we now register all n-p config files via ucf.
register_cfgs(){
		# do this in a subshell so we don't screw up cwd
		( 
			for file in ${templdir}/*cfg; do
				ucf ${templdir}/$(basename $file) ${npconfdir}/$(basename $file)
			done 
		);
}