summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-02-27 00:53:19 +0100
committerJelmer Vernooij <jelmer@samba.org>2012-02-27 03:52:05 +0100
commit2c9ff8a4d7d9217d69a7c4abdd4b776d138f9951 (patch)
treec71907eac02e45d14d69a6741bc088b1caf8096e /source4
parentf40c9ac7ac794c09dbeaa1bf1fdb0df980b74b63 (diff)
downloadsamba-2c9ff8a4d7d9217d69a7c4abdd4b776d138f9951.tar.gz
samba-2c9ff8a4d7d9217d69a7c4abdd4b776d138f9951.tar.bz2
samba-2c9ff8a4d7d9217d69a7c4abdd4b776d138f9951.zip
upgradeprovision: Only backup sysvol directory if it exists.
This is not the case for standalone installations. Bug: https://bugs.launchpad.net/samba/+bug/930370 Bug: https://bugzilla.samba.org/show_bug.cgi?id=8781
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/scripting/bin/upgradeprovision3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/scripting/bin/upgradeprovision b/source4/scripting/bin/upgradeprovision
index ba9e5e5c0a..8066ac38d4 100755
--- a/source4/scripting/bin/upgradeprovision
+++ b/source4/scripting/bin/upgradeprovision
@@ -1471,7 +1471,8 @@ def backup_provision(paths, dir):
:param paths: Paths to different objects
:param dir: Directory where to store the backup
"""
- copytree_with_xattrs(paths.sysvol, os.path.join(dir, "sysvol"))
+ if paths.sysvol is not None:
+ copytree_with_xattrs(paths.sysvol, os.path.join(dir, "sysvol"))
shutil.copy2(paths.samdb, dir)
shutil.copy2(paths.secrets, dir)
shutil.copy2(paths.idmapdb, dir)