diff options
Diffstat (limited to '')
-rw-r--r-- | debian/functions | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/functions b/debian/functions new file mode 100644 index 0000000..a902e12 --- /dev/null +++ b/debian/functions @@ -0,0 +1,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 + ); +} + |