From 5bf9db7e315c392be7aa610e922c63bf2510bce6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 26 Feb 2010 14:25:07 +1100 Subject: s4-provision: setup the dns_update_list at provision time This file is substituted at runtime by samba_dnsupdate --- source4/scripting/python/samba/provision.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py index 900df89484..6adc79f2b1 100644 --- a/source4/scripting/python/samba/provision.py +++ b/source4/scripting/python/samba/provision.py @@ -296,6 +296,7 @@ def provision_paths_from_lp(lp, dnsdomain): paths.secrets = os.path.join(paths.private_dir, lp.get("secrets database") or "secrets.ldb") paths.privilege = os.path.join(paths.private_dir, "privilege.ldb") paths.dns = os.path.join(paths.private_dir, "dns", dnsdomain + ".zone") + paths.dns_update_list = os.path.join(paths.private_dir, "dns_update_list") paths.namedconf = os.path.join(paths.private_dir, "named.conf") paths.namedconf_update = os.path.join(paths.private_dir, "named.conf.update") paths.namedtxt = os.path.join(paths.private_dir, "named.txt") @@ -1554,6 +1555,10 @@ def create_zone_file(lp, message, paths, targetdir, setup_path, dnsdomain, "HOSTIP6_HOST_LINE": hostip6_host_line, }) + # note that we use no variable substitution on this file + # the substitution is done at runtime by samba_dnsupdate + setup_file(setup_path("dns_update_list"), paths.dns_update_list, None) + if paths.bind_gid is not None: try: os.chown(dns_dir, -1, paths.bind_gid) -- cgit