mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +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:
parent
2cf97c403f
commit
d1c2923151
@ -465,7 +465,11 @@ def make_smbconf(smbconf, setup_path, hostname, domain, realm, serverrole,
|
||||
if os.path.exists(smbconf):
|
||||
default_lp.load(smbconf)
|
||||
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:
|
||||
posixeadb_line = ""
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user