mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-12 15:57:31 +01:00
return back to good location for database upgrade call
SVN Revision: 1059
This commit is contained in:
parent
d4ff7eeb4a
commit
b9286778d4
@ -138,7 +138,6 @@ init([ServerHost, Opts]) ->
|
||||
Host = gen_mod:get_opt_host(ServerHost, Opts, "pubsub.@HOST@"),
|
||||
ServedHosts = gen_mod:get_opt(served_hosts, Opts, []),
|
||||
Access = gen_mod:get_opt(access_createnode, Opts, all),
|
||||
update_database(Host),
|
||||
mnesia:create_table(pubsub_presence,
|
||||
[{disc_copies, [node()]},
|
||||
{attributes, record_info(fields, pubsub_presence)}]),
|
||||
@ -167,6 +166,7 @@ init([ServerHost, Opts]) ->
|
||||
{?NS_PUBSUB_OWNER, ejabberd_sm, iq_sm}]),
|
||||
ejabberd_router:register_route(Host),
|
||||
{Plugins, NodeTree} = init_plugins(Host, ServerHost, Opts),
|
||||
update_database(Host),
|
||||
ets:new(gen_mod:get_module_proc(Host, pubsub_state), [set, named_table]),
|
||||
ets:insert(gen_mod:get_module_proc(Host, pubsub_state), {nodetree, NodeTree}),
|
||||
ets:insert(gen_mod:get_module_proc(Host, pubsub_state), {plugins, Plugins}),
|
||||
|
Loading…
Reference in New Issue
Block a user