1
0
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:
Matthieu Patou 2010-02-08 15:36:07 +03:00 committed by Matthias Dieter Wallnöfer
parent 2cf97c403f
commit d1c2923151

View File

@ -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 = ""