Fix config path lookup #51

Merged
floatingghost merged 3 commits from norm/akkoma:fix-config-path into develop 2022-07-06 18:28:41 +00:00
Showing only changes of commit 4833bc927e - Show all commits

View file

@ -12,7 +12,8 @@ def load(config, opts) do
with_defaults = Config.Reader.merge(config, Pleroma.Config.Holder.release_defaults())
config_path =
opts[:config_path] || System.get_env("PLEROMA_CONFIG_PATH") || "/etc/pleroma/config.exs"
opts[:config_path] || System.get_env("PLEROMA_CONFIG_PATH") || "/etc/akkoma/config.exs" ||
"/etc/pleroma/config.exs"
with_runtime_config =
if File.exists?(config_path) do