
10 changed files with 66 additions and 66 deletions
@ -1,18 +1,13 @@
|
||||
import Config |
||||
|
||||
case System.get_env("RELIVE", "false") do |
||||
"true" -> |
||||
rootpath = System.get_env("RELEASE_ROOT", "_build/relive") |
||||
config :ejabberd, |
||||
file: Path.join(rootpath, "conf/ejabberd.yml"), |
||||
log_path: Path.join(rootpath, 'logs/ejabberd.log') |
||||
config :mnesia, |
||||
dir: Path.join(rootpath, 'database/') |
||||
"false" -> |
||||
rootpath = System.get_env("RELEASE_ROOT", "") |
||||
config :ejabberd, |
||||
file: Path.join(rootpath, "etc/ejabberd/ejabberd.yml"), |
||||
log_path: Path.join(rootpath, 'var/log/ejabberd/ejabberd.log') |
||||
config :mnesia, |
||||
dir: Path.join(rootpath, 'var/lib/ejabberd/') |
||||
rootdefault = case System.get_env("RELIVE", "false") do |
||||
"true" -> "_build/relive" |
||||
"false" -> "" |
||||
end |
||||
|
||||
rootpath = System.get_env("RELEASE_ROOT", rootdefault) |
||||
config :ejabberd, |
||||
file: Path.join(rootpath, "conf/ejabberd.yml"), |
||||
log_path: Path.join(rootpath, 'logs/ejabberd.log') |
||||
config :mnesia, |
||||
dir: Path.join(rootpath, 'database/') |
||||
|
@ -1,2 +1,2 @@
|
||||
[{ejabberd, [{config, "etc/ejabberd/ejabberd.yml"}, |
||||
{log_path, "var/log/ejabberd/ejabberd.log"}]}]. |
||||
[{ejabberd, [{config, "conf/ejabberd.yml"}, |
||||
{log_path, "logs/ejabberd.log"}]}]. |
||||
|
Loading…
Reference in new issue