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

Don't attempt to create acme directory on ejabberd startup

This commit is contained in:
Evgeny Khramtsov 2019-09-22 01:14:29 +03:00
parent ea09497038
commit d5e0ccb04a

View File

@ -100,8 +100,6 @@ init([]) ->
ets:new(acme_challenge, [named_table, public]),
process_flag(trap_exit, true),
ejabberd:start_app(acme),
case ensure_dir(account_file()) of
ok ->
delete_obsolete_data(),
ejabberd_hooks:add(cert_expired, ?MODULE, cert_expired, 60),
ejabberd_hooks:add(config_reloaded, ?MODULE, register_certfiles, 40),
@ -109,10 +107,7 @@ init([]) ->
ejabberd_hooks:add(config_reloaded, ?MODULE, ejabberd_started, 110),
ejabberd_commands:register_commands(get_commands_spec()),
register_certfiles(),
{ok, #state{}};
{error, Why} ->
{stop, Why}
end.
{ok, #state{}}.
handle_call({request, [_|_] = Domains}, _From, State) ->
?INFO_MSG("Requesting new certificate for ~s from ~s",