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:
parent
ca329826cb
commit
13ead140f4
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user