mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
s4-provision: Use "state directory" from lp, as it is always set
This fixes new provisions when --targetdir is not provided. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Thu Mar 1 11:41:02 CET 2012 on sn-devel-104
This commit is contained in:
committed by
Amitay Isaacs
parent
8b01b88fe8
commit
00a5366fdb
@ -645,8 +645,7 @@ def make_smbconf(smbconf, hostname, domain, realm, targetdir,
|
||||
|
||||
shares = {}
|
||||
if serverrole == "domain controller":
|
||||
shares["sysvol"] = os.path.join(global_settings["state directory"],
|
||||
"sysvol")
|
||||
shares["sysvol"] = os.path.join(lp.get("state directory"), "sysvol")
|
||||
shares["netlogon"] = os.path.join(shares["sysvol"], realm.lower(),
|
||||
"scripts")
|
||||
|
||||
|
Reference in New Issue
Block a user