d/functions: Fixing ucf register function
This commit is contained in:
parent
1fdd249bd3
commit
d634e5ad8b
4
debian/functions
vendored
4
debian/functions
vendored
|
@ -6,8 +6,8 @@ npconfdir=/etc/nagios-plugins/config
|
|||
register_cfgs(){
|
||||
# do this in a subshell so we don't screw up cwd
|
||||
(
|
||||
for f in *cfg; do
|
||||
ucf ${templdir}/$f ${npconfdir}/$f
|
||||
for file in ${templdir}/*cfg; do
|
||||
ucf ${templdir}/$(basename $file) ${npconfdir}/$(basename $file)
|
||||
done
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue