aboutsummaryrefslogtreecommitdiff
path: root/src/ejabberd.app.src.script
blob: 4c87451467cde8a4a37d7c4cb9e05ba164707c47 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Vars = case file:consult(filename:join([filename:dirname(SCRIPT), "..", "vars.config"])) of
    {ok, Terms} ->
        Backends = [mssql, mysql, odbc, pgsql, redis, sqlite],
        EBs = lists:filter(fun(Backend) -> lists:member({Backend, true}, Terms) end, Backends),
        [lists:keyfind(description, 1, Terms),
         lists:keyfind(vsn, 1, Terms),
         {env, [{enabled_backends, EBs}]}
        ];
    _Err ->
        []
    end,

{application, ejabberd,
 Vars ++
 [{modules, []},
  {registered, []},
  {applications, [kernel, sasl, ssl, stdlib, syntax_tools]},
  {included_applications,
    [compiler, inets, mnesia, os_mon,
     cache_tab,
     eimp,
     fast_tls,
     fast_xml,
     fast_yaml,
     p1_acme,
     p1_utils,
     pkix,
     stringprep,
     yconf,
     xmpp]},
  {mod, {ejabberd_app, []}}]}.

%% Local Variables:
%% mode: erlang
%% End:
%% vim: set filetype=erlang tabstop=8: