diff options
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/libjs/provision.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/scripting/libjs/provision.js b/source4/scripting/libjs/provision.js index 9ad2257ff3..c4ffab6a30 100644 --- a/source4/scripting/libjs/provision.js +++ b/source4/scripting/libjs/provision.js @@ -367,6 +367,7 @@ function provision_default_paths(subobj) var lp = loadparm_init(); var paths = new Object(); paths.smbconf = lp.get("config file"); + paths.shareconf = lp.get("private dir") + "/" + "share.ldb"; paths.hklm = "hklm.ldb"; paths.hkcu = "hkcu.ldb"; paths.hkcr = "hkcr.ldb"; @@ -464,6 +465,12 @@ function provision(subobj, message, blank, paths, session_info, credentials) setup_file("provision.smb.conf", info.message, paths.smbconf, subobj); lp.reload(); } + /* only install a new shares config db if there is none */ + st = sys.stat(paths.shareconf); + if (st == undefined) { + message("Setting up sconf.ldb\n"); + setup_ldb("share.ldif", info, paths.shareconf); + } message("Setting up secrets.ldb\n"); setup_ldb("secrets.ldif", info, paths.secrets); message("Setting up keytabs\n"); |