25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Log warning on empty wildcard paths

This commit is contained in:
Evgeniy Khramtsov 2017-12-08 12:50:10 +03:00
parent f1ac793d56
commit e15a9a2b9e

View File

@ -295,7 +295,20 @@ get_certfiles_from_config_options(_State) ->
undefined ->
[];
Paths ->
lists:flatmap(fun wildcard/1, Paths)
lists:flatmap(
fun(Path) ->
case wildcard(Path) of
[] ->
?WARNING_MSG(
"Path ~s is empty, please "
"make sure ejabberd has "
"sufficient rights to read it",
[Path]),
[];
Fs ->
Fs
end
end, Paths)
end,
Local = lists:flatmap(
fun(OptHost) ->