Fix config path lookup #139
1 changed files with 3 additions and 3 deletions
|
@ -14,10 +14,10 @@ def load(config, opts) do
|
||||||
config_path =
|
config_path =
|
||||||
cond do
|
cond do
|
||||||
opts[:config_path] -> opts[:config_path]
|
opts[:config_path] -> opts[:config_path]
|
||||||
System.get_env("PLEROMA_CONFIG_PATH") -> System.get_env("PLEROMA_CONFIG_PATH")
|
|
||||||
System.get_env("AKKOMA_CONFIG_PATH") -> System.get_env("AKKOMA_CONFIG_PATH")
|
System.get_env("AKKOMA_CONFIG_PATH") -> System.get_env("AKKOMA_CONFIG_PATH")
|
||||||
File.exists?("/etc/akkoma/config.exs") -> "/etc/akkoma/config.exs"
|
System.get_env("PLEROMA_CONFIG_PATH") -> System.get_env("PLEROMA_CONFIG_PATH")
|
||||||
true -> "/etc/pleroma/config.exs"
|
File.exists?("/etc/pleroma/config.exs") -> "/etc/pleroma/config.exs"
|
||||||
|
true -> "/etc/akkoma/config.exs"
|
||||||
end
|
end
|
||||||
|
|
||||||
with_runtime_config =
|
with_runtime_config =
|
||||||
|
|
Loading…
Reference in a new issue