diff --git a/config/config.exs b/config/config.exs deleted file mode 100644 index ef479a4db..000000000 --- a/config/config.exs +++ /dev/null @@ -1,10 +0,0 @@ -use Mix.Config - -# This is standard path in the context of ejabberd release -config :ejabberd, - file: "config/ejabberd.yml", - log_path: 'log/ejabberd.log' - -# Customize Mnesia directory: -config :mnesia, - dir: 'database/' diff --git a/config/runtime.exs b/config/runtime.exs new file mode 100644 index 000000000..050eae8b0 --- /dev/null +++ b/config/runtime.exs @@ -0,0 +1,12 @@ +import Config + +rootpath = System.get_env("RELEASE_ROOT", "") + +# This is standard path in the context of ejabberd release +config :ejabberd, + file: Path.join(rootpath, "etc/ejabberd/ejabberd.yml"), + log_path: Path.join(rootpath, 'var/log/ejabberd/ejabberd.log') + +# Customize Mnesia directory: +config :mnesia, + dir: Path.join(rootpath, 'var/lib/ejabberd/')