mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
provision: Fix an error with eadb when using not default install dir and running as a non root user
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
This commit is contained in:
committed by
Matthias Dieter Wallnöfer
parent
2cf97c403f
commit
d1c2923151
@ -465,7 +465,11 @@ def make_smbconf(smbconf, setup_path, hostname, domain, realm, serverrole,
|
|||||||
if os.path.exists(smbconf):
|
if os.path.exists(smbconf):
|
||||||
default_lp.load(smbconf)
|
default_lp.load(smbconf)
|
||||||
if eadb:
|
if eadb:
|
||||||
posixeadb_line = "posix:eadb = " + os.path.abspath(os.path.join(os.path.join(targetdir, "private"),"eadb.tdb"))
|
if targetdir is not None:
|
||||||
|
privdir = os.path.join(targetdir, "private")
|
||||||
|
else:
|
||||||
|
privdir = default_lp.get("private dir")
|
||||||
|
posixeadb_line = "posix:eadb = " + os.path.abspath(os.path.join(privdir,"eadb.tdb"))
|
||||||
else:
|
else:
|
||||||
posixeadb_line = ""
|
posixeadb_line = ""
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user