summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-09-10 06:36:02 +0200
committerStefan Metzmacher <metze@samba.org>2010-09-10 17:21:31 +0200
commit0ad2890c4e5a0249d45440f66b0ceae33c832328 (patch)
tree17943939103a75a3d158296e849fef51e9e79ef9 /source4/scripting/python
parentbf7ca3f5e7e6f126fd8baec5548dfd45bc5e168f (diff)
downloadsamba-0ad2890c4e5a0249d45440f66b0ceae33c832328.tar.gz
samba-0ad2890c4e5a0249d45440f66b0ceae33c832328.tar.bz2
samba-0ad2890c4e5a0249d45440f66b0ceae33c832328.zip
s4:provision: remember the setup directory if it wasn't the default
This fixes make test without a make install. metze
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/provision.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py
index 59787dadc3..ef5852090f 100644
--- a/source4/scripting/python/samba/provision.py
+++ b/source4/scripting/python/samba/provision.py
@@ -569,6 +569,13 @@ def make_smbconf(smbconf, setup_path, hostname, domain, realm, serverrole,
else:
sid_generator_line = "sid generator = " + sid_generator
+ used_setup_dir = setup_path("")
+ default_setup_dir = default_lp.get("setup directory")
+ setupdir_line = ""
+ if used_setup_dir != default_setup_dir:
+ setupdir_line = "setup directory = %s" % used_setup_dir
+ default_lp.set("setup directory", used_setup_dir)
+
sysvol = os.path.join(default_lp.get("lock dir"), "sysvol")
netlogon = os.path.join(sysvol, realm.lower(), "scripts")
@@ -580,6 +587,7 @@ def make_smbconf(smbconf, setup_path, hostname, domain, realm, serverrole,
"SERVERROLE": serverrole,
"NETLOGONPATH": netlogon,
"SYSVOLPATH": sysvol,
+ "SETUPDIRECTORY_LINE": setupdir_line,
"SIDGENERATOR_LINE": sid_generator_line,
"PRIVATEDIR_LINE": privatedir_line,
"LOCKDIR_LINE": lockdir_line,