d/functions: Fixing ucf register function

This commit is contained in:
Jan Wagner 2018-05-13 14:04:25 +02:00
parent 1fdd249bd3
commit d634e5ad8b

4
debian/functions vendored
View file

@ -6,8 +6,8 @@ npconfdir=/etc/nagios-plugins/config
register_cfgs(){ register_cfgs(){
# do this in a subshell so we don't screw up cwd # do this in a subshell so we don't screw up cwd
( (
for f in *cfg; do for file in ${templdir}/*cfg; do
ucf ${templdir}/$f ${npconfdir}/$f ucf ${templdir}/$(basename $file) ${npconfdir}/$(basename $file)
done done
); );
} }