summaryrefslogtreecommitdiff
path: root/source4/scripting/bin/upgradeprovision
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2010-08-14 20:44:35 +0400
committerMatthieu Patou <mat@matws.net>2010-09-05 12:29:20 +0400
commit1d0815281e41cb1ca2cf72a3dba28a9ca75fb65d (patch)
treebbd10a289c8d09c6635ce2b0dbe96fce67abc611 /source4/scripting/bin/upgradeprovision
parente2d575ee8099bb31e3bc926cf6730a3ca77e69ef (diff)
downloadsamba-1d0815281e41cb1ca2cf72a3dba28a9ca75fb65d.tar.gz
samba-1d0815281e41cb1ca2cf72a3dba28a9ca75fb65d.tar.bz2
samba-1d0815281e41cb1ca2cf72a3dba28a9ca75fb65d.zip
s4 upgradeprovision: add dns_update_list if missing
Diffstat (limited to 'source4/scripting/bin/upgradeprovision')
-rwxr-xr-xsource4/scripting/bin/upgradeprovision4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/scripting/bin/upgradeprovision b/source4/scripting/bin/upgradeprovision
index 90586ded64..2bae4b9c23 100755
--- a/source4/scripting/bin/upgradeprovision
+++ b/source4/scripting/bin/upgradeprovision
@@ -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