lib/update.operations
changeset 99 934aab83b769
parent 98 a3734856e0fa
equal deleted inserted replaced
98:a3734856e0fa 99:934aab83b769
    61     if check_update "$out" "$@"; then
    61     if check_update "$out" "$@"; then
    62         log_update "Generating forward hosts zone $out @ $domain <- $@..."
    62         log_update "Generating forward hosts zone $out @ $domain <- $@..."
    63     
    63     
    64         do_update "$out" $OPT/bin/pvl.hosts-dns \
    64         do_update "$out" $OPT/bin/pvl.hosts-dns \
    65             --hosts-charset=$CHARSET \
    65             --hosts-charset=$CHARSET \
       
    66             --hosts-include=etc/hosts \
    66             --forward-zone="$domain" \
    67             --forward-zone="$domain" \
    67              "$@"
    68              "$@"
    68     else
    69     else
    69         log_skip "Generating forward hosts $out <- $@: not changed"
    70         log_skip "Generating forward hosts $out <- $@: not changed"
    70     fi
    71     fi
    77     if check_update $out "$@"; then
    78     if check_update $out "$@"; then
    78         log_update "Generating DHCP hosts $out @ $domain <- $@..."
    79         log_update "Generating DHCP hosts $out @ $domain <- $@..."
    79 
    80 
    80         do_update $out $OPT/bin/pvl.hosts-dhcp \
    81         do_update $out $OPT/bin/pvl.hosts-dhcp \
    81             --hosts-charset=$CHARSET \
    82             --hosts-charset=$CHARSET \
    82             --hosts-domain=$domain \
    83             --hosts-include=etc/hosts \
    83             "$@"
    84             "$@"
    84     else
    85     else
    85         log_skip "Generating DHCP hosts $out <- $@: not changed"
    86         log_skip "Generating DHCP hosts $out <- $@: not changed"
    86     fi
    87     fi
    87 }
    88 }
    96     if check_update "$out" "$@"; then
    97     if check_update "$out" "$@"; then
    97         log_update "Generating reverse hosts zone $out <- $@..."
    98         log_update "Generating reverse hosts zone $out <- $@..."
    98     
    99     
    99         do_update "$out" $OPT/bin/pvl.hosts-dns \
   100         do_update "$out" $OPT/bin/pvl.hosts-dns \
   100             --hosts-charset=$CHARSET \
   101             --hosts-charset=$CHARSET \
       
   102             --hosts-include=etc/hosts \
   101             --reverse-zone="$reverse" \
   103             --reverse-zone="$reverse" \
   102             "$@"
   104             "$@"
   103     else
   105     else
   104         log_skip "Generating reverse hosts $out <- $@: not changed"
   106         log_skip "Generating reverse hosts $out <- $@: not changed"
   105     fi
   107     fi