s4: Fix missing TLS dir when targetdir is not the default one
[ira/wip.git] / source4 / scripting / python / samba / provision.py
index 01ffc16a24df9402cb2e56b2ec0a4abc369d411e..242951def3df08c802617d657a3baab066b1cdc7 100644 (file)
@@ -1130,6 +1130,8 @@ def provision(setup_dir, message, session_info,
 
     if not os.path.exists(paths.private_dir):
         os.mkdir(paths.private_dir)
+    if not os.path.exists(os.path.join(paths.private_dir,"tls")):
+        os.mkdir(os.path.join(paths.private_dir,"tls"))
 
     ldapi_url = "ldapi://%s" % urllib.quote(paths.s4_ldapi_path, safe="")