--- a/lib/pvl/hosts/zone.sh Sun Mar 01 20:15:18 2015 +0200
+++ b/lib/pvl/hosts/zone.sh Sun Mar 01 20:24:51 2015 +0200
@@ -16,7 +16,7 @@
function update_hosts_forward {
local out="$1"
local src="$2"
- local srcs=($src/*)
+ local srcs=($(list_tree $src))
local msg="$out: Generating forward hosts zone: $src"
if apply_check "$out" "${srcs[@]}"; then
@@ -36,10 +36,10 @@
function update_hosts_reverse {
local out="$1"
local src="$2"
- local srcs=$src/*
+ local srcs=($(list_tree $src))
local msg="$out: Generating reverse hosts zone: $src"
- if apply_check "$out" $srcs; then
+ if apply_check "$out" "${srcs[@]}"; then
log_skip "$msg"
else
log_apply "$msg"