lib/update.operations
branchdns-new
changeset 91 acb2fb235eb2
parent 90 5b33ccac38ad
child 92 639a5093039b
equal deleted inserted replaced
90:5b33ccac38ad 91:acb2fb235eb2
   183     else
   183     else
   184         log_skip "Generating $out <- $src: not changed" 
   184         log_skip "Generating $out <- $src: not changed" 
   185     fi
   185     fi
   186 }
   186 }
   187 
   187 
       
   188 ## Generate dhcp confs from source using pvl.dhcp-conf:
       
   189 function update_dhcp_conf {
       
   190     local out="$1"
       
   191     local src="$2"
       
   192 
       
   193     if check_update "$out" "$src"; then
       
   194         log_update "Generating $out <- $src..."
       
   195             
       
   196         do_update "$out" $OPT/bin/pvl.dhcp-conf "$src" \
       
   197             --include-path=$SRV/var/dhcp
       
   198     else
       
   199         log_skip "Generating $out <- $src: not changed"
       
   200     fi
       
   201 }
       
   202 
   188 ## Test hosts zone for validity using pvl.hosts-check:
   203 ## Test hosts zone for validity using pvl.hosts-check:
   189 #
   204 #
   190 #   check_hosts     .../hosts
   205 #   check_hosts     .../hosts
   191 function check_hosts {
   206 function check_hosts {
   192     local hosts=$1; shift 1
   207     local hosts=$1; shift 1