1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-06 08:59:08 +03:00

Fixed a problem with provision missing the default_dir/etc directory.

This commit is contained in:
Nadezhda Ivanova
2010-04-12 16:05:37 +03:00
parent d73a7e7e90
commit 83312a9e50

View File

@ -1170,11 +1170,11 @@ def provision(setup_dir, message, session_info,
bind_gid = None
if targetdir is not None:
if (not os.path.exists(os.path.join(targetdir, "etc"))):
os.makedirs(os.path.join(targetdir, "etc"))
smbconf = os.path.join(targetdir, "etc", "smb.conf")
elif smbconf is None:
smbconf = param.default_path()
if not os.path.exists(os.path.dirname(smbconf)):
os.makedirs(os.path.dirname(smbconf))
# only install a new smb.conf if there isn't one there already
if os.path.exists(smbconf):