Copy lite.sql to place where tests expect it in failback mode

This commit is contained in:
Paweł Chmielowski 2016-05-26 11:05:44 +02:00
parent ca329826cb
commit 13ead140f4
1 changed files with 4 additions and 0 deletions

View File

@ -47,6 +47,10 @@ init_config(Config) ->
]),
ConfigPath = filename:join([CWD, "ejabberd.yml"]),
ok = file:write_file(ConfigPath, CfgContent),
ok = file:make_dir(filename:join([CWD, "priv"])),
ok = file:make_dir(filename:join([CWD, "priv", "sql"])),
{ok, _} = file:copy(filename:join([DataDir, "..", "..", "sql", "lite.sql"]),
filename:join([CWD, "priv", "sql", "lite.sql"])),
ok = application:load(sasl),
ok = application:load(mnesia),
ok = application:load(ejabberd),