lib/pvl/hosts/zone.sh
changeset 664 10ac59f9d4e7
parent 654 8069b08e90ac
child 712 97fa1b086b36
--- 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"