summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-02-26 14:25:07 +1100
committerAndrew Tridgell <tridge@samba.org>2010-02-26 14:27:38 +1100
commit5bf9db7e315c392be7aa610e922c63bf2510bce6 (patch)
treeb07f4d0070655a2040861c7ebef8b253ad74062c /source4/scripting/python
parent44f9d5aadcd3d86e754b5e899c9ecbaa82dd41e8 (diff)
downloadsamba-5bf9db7e315c392be7aa610e922c63bf2510bce6.tar.gz
samba-5bf9db7e315c392be7aa610e922c63bf2510bce6.tar.bz2
samba-5bf9db7e315c392be7aa610e922c63bf2510bce6.zip
s4-provision: setup the dns_update_list at provision time
This file is substituted at runtime by samba_dnsupdate
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/provision.py5
1 files changed, 5 insertions, 0 deletions
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)