While I was attempting to set up an Akkoma instance using the OTP build, I noticed that it was falling back to using `/etc/pleroma` instead of `/etc/akkoma` for the config path. As the `config.exs` file doesn't exist prior to running `pleroma_ctl instance gen`, it tries to write to `/etc/pleroma/config.exs` but the directory doesn't exist when following the OTP install guide, so the config generation fails. This patch should hopefully fix that.
This commit is contained in:
parent
c9600dbbbf
commit
f41b84b989
1 changed files with 3 additions and 3 deletions
|
@ -14,10 +14,10 @@ def load(config, opts) do
|
|||
config_path =
|
||||
cond do
|
||||
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")
|
||||
File.exists?("/etc/akkoma/config.exs") -> "/etc/akkoma/config.exs"
|
||||
true -> "/etc/pleroma/config.exs"
|
||||
System.get_env("PLEROMA_CONFIG_PATH") -> System.get_env("PLEROMA_CONFIG_PATH")
|
||||
File.exists?("/etc/pleroma/config.exs") -> "/etc/pleroma/config.exs"
|
||||
true -> "/etc/akkoma/config.exs"
|
||||
end
|
||||
|
||||
with_runtime_config =
|
||||
|
|
Loading…
Reference in a new issue