1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-31 22:02:58 +03:00

s4 upgradeprovision: add dns_update_list if missing

This commit is contained in:
Matthieu Patou
2010-08-14 20:44:35 +04:00
parent e2d575ee80
commit 1d0815281e

View File

@ -197,6 +197,7 @@ def check_for_DNS(refprivate, private):
provision"""
spnfile = "%s/spn_update_list" % private
dnsfile = "%s/dns_update_list" % private
namedfile = lp.get("dnsupdate:path")
if not namedfile:
@ -205,6 +206,9 @@ def check_for_DNS(refprivate, private):
if not os.path.exists(spnfile):
shutil.copy("%s/spn_update_list" % refprivate, "%s" % spnfile)
if not os.path.exists(dnsfile):
shutil.copy("%s/dns_update_list" % refprivate, "%s" % dnsfile)
destdir = "%s/new_dns" % private
dnsdir = "%s/dns" % private