pkg-monitoring-plugins/debian/functions

15 lines
339 B
Plaintext

# 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
);
}