mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
New predefined keyword: CONFIG_PATH
This commit is contained in:
parent
263e1f59f7
commit
b65c11daf6
1 changed files with 4 additions and 0 deletions
|
@ -509,11 +509,15 @@ get_predefined_keywords(Host) ->
|
||||||
[{<<"HOST">>, Host}]
|
[{<<"HOST">>, Host}]
|
||||||
end,
|
end,
|
||||||
Home = misc:get_home(),
|
Home = misc:get_home(),
|
||||||
|
ConfigDirPath =
|
||||||
|
iolist_to_binary(filename:dirname(
|
||||||
|
ejabberd_config:path())),
|
||||||
LogDirPath =
|
LogDirPath =
|
||||||
iolist_to_binary(filename:dirname(
|
iolist_to_binary(filename:dirname(
|
||||||
ejabberd_logger:get_log_path())),
|
ejabberd_logger:get_log_path())),
|
||||||
HostList
|
HostList
|
||||||
++ [{<<"HOME">>, list_to_binary(Home)},
|
++ [{<<"HOME">>, list_to_binary(Home)},
|
||||||
|
{<<"CONFIG_PATH">>, ConfigDirPath},
|
||||||
{<<"LOG_PATH">>, LogDirPath},
|
{<<"LOG_PATH">>, LogDirPath},
|
||||||
{<<"SEMVER">>, ejabberd_option:version()},
|
{<<"SEMVER">>, ejabberd_option:version()},
|
||||||
{<<"VERSION">>,
|
{<<"VERSION">>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue