1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 09:49:18 +02:00

New predefined keyword: LOG_PATH

This commit is contained in:
Badlop 2025-06-10 13:52:59 +02:00 committed by Stefan Strigler
parent bae345b92b
commit 149b715b4f

View file

@ -504,8 +504,12 @@ get_predefined_keywords(Host) ->
[{<<"HOST">>, Host}] [{<<"HOST">>, Host}]
end, end,
Home = misc:get_home(), Home = misc:get_home(),
LogDirPath =
iolist_to_binary(filename:dirname(
ejabberd_logger:get_log_path())),
HostList HostList
++ [{<<"HOME">>, list_to_binary(Home)}, ++ [{<<"HOME">>, list_to_binary(Home)},
{<<"LOG_PATH">>, LogDirPath},
{<<"SEMVER">>, ejabberd_option:version()}, {<<"SEMVER">>, ejabberd_option:version()},
{<<"VERSION">>, {<<"VERSION">>,
misc:semver_to_xxyy( misc:semver_to_xxyy(