From 83312a9e501ebbee15b4fd2353330880496f4add Mon Sep 17 00:00:00 2001 From: Nadezhda Ivanova Date: Mon, 12 Apr 2010 16:05:37 +0300 Subject: Fixed a problem with provision missing the default_dir/etc directory. --- source4/scripting/python/samba/provision.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/scripting/python') diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py index 2e4aa34a8c..f2004878c1 100644 --- a/source4/scripting/python/samba/provision.py +++ b/source4/scripting/python/samba/provision.py @@ -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): -- cgit