25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

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

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),