diff options
author | Andrew Bartlett <abartlet@samba.org> | 2019-07-05 16:46:04 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-08-22 21:24:00 +0000 |
commit | b4816861f200bb292e26f51b15c1ce93fa9e16c6 (patch) | |
tree | fb947ed9679be9836e7655cf108f0ac9439860ce /python | |
parent | 561e0986ac96c842239b4e8c6509e05c836707b7 (diff) | |
download | samba-b4816861f200bb292e26f51b15c1ce93fa9e16c6.tar.gz |
s4-dns: Deprecate BIND9_FLATFILE and remove "rndc command"
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Aug 22 21:24:00 UTC 2019 on sn-devel-184
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/provision/sambadns.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/python/samba/provision/sambadns.py b/python/samba/provision/sambadns.py index 9b245608c63..e7273fc759e 100644 --- a/python/samba/provision/sambadns.py +++ b/python/samba/provision/sambadns.py @@ -749,11 +749,6 @@ def create_zone_file(lp, logger, paths, targetdir, dnsdomain, hostip_host_line = "" gc_msdcs_ip_line = "" - # we need to freeze the zone while we update the contents - if targetdir is None: - rndc = ' '.join(lp.get("rndc command")) - os.system(rndc + " freeze " + lp.get("realm")) - setup_file(setup_path("provision.zone"), paths.dns, { "HOSTNAME": hostname, "DNSDOMAIN": dnsdomain, @@ -780,9 +775,6 @@ def create_zone_file(lp, logger, paths, targetdir, dnsdomain, logger.error("Failed to chown %s to bind gid %u" % ( paths.dns, paths.bind_gid)) - if targetdir is None: - os.system(rndc + " unfreeze " + lp.get("realm")) - def create_samdb_copy(samdb, logger, paths, names, domainsid, domainguid): """Create a copy of samdb and give write permissions to named for dns partitions |