Don't specify what should be a default option in the generated smb.conf
authorAndrew Bartlett <abartlet@samba.org>
Thu, 27 Mar 2008 23:38:12 +0000 (10:38 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 27 Mar 2008 23:38:12 +0000 (10:38 +1100)
Instead, sub in "", so that the default continued to come from the code.

Andrew Bartlett
(This used to be commit b1829da8f75175fcc569a3a9195f2358731055a9)

source4/scripting/python/samba/provision.py

index e97ce694b4cab133687c16973f0acb6d2b0e6977..d5e66d842c154cbb1094f5dd49bb59bd04fd6333 100644 (file)
@@ -374,8 +374,8 @@ def load_or_make_smbconf(smbconf, setup_path, hostname, domain, realm, serverrol
 
             default_lp.set("lock dir", os.path.abspath(targetdir))
         else:
-           privatedir_line = "private_dir = " + default_lp.get("private dir")
-           lockdir_line = "lock dir = " + default_lp.get("lock dir")
+           privatedir_line = ""
+           lockdir_line = ""
 
         sysvol = os.path.join(default_lp.get("lock dir"), "sysvol")
         netlogon = os.path.join(sysvol, realm.lower(), "scripts")