lib/update.operations
branchdns-new
changeset 91 acb2fb235eb2
parent 90 5b33ccac38ad
child 92 639a5093039b
--- a/lib/update.operations	Thu Dec 19 03:08:19 2013 +0200
+++ b/lib/update.operations	Thu Dec 19 18:55:53 2013 +0200
@@ -185,6 +185,21 @@
     fi
 }
 
+## Generate dhcp confs from source using pvl.dhcp-conf:
+function update_dhcp_conf {
+    local out="$1"
+    local src="$2"
+
+    if check_update "$out" "$src"; then
+        log_update "Generating $out <- $src..."
+            
+        do_update "$out" $OPT/bin/pvl.dhcp-conf "$src" \
+            --include-path=$SRV/var/dhcp
+    else
+        log_skip "Generating $out <- $src: not changed"
+    fi
+}
+
 ## Test hosts zone for validity using pvl.hosts-check:
 #
 #   check_hosts     .../hosts