From 0ad2890c4e5a0249d45440f66b0ceae33c832328 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 10 Sep 2010 06:36:02 +0200 Subject: s4:provision: remember the setup directory if it wasn't the default This fixes make test without a make install. metze --- source4/scripting/python/samba/provision.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source4/scripting/python') 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, -- cgit