Add OTP to updating.md
[akkoma] / config / releases.exs
1 import Config
2
3 config :pleroma, :instance, static_dir: "/var/lib/pleroma/static"
4 config :pleroma, Pleroma.Uploaders.Local, uploads: "/var/lib/pleroma/uploads"
5 config :pleroma, :modules, runtime_dir: "/var/lib/pleroma/modules"
6
7 config_path = System.get_env("PLEROMA_CONFIG_PATH") || "/etc/pleroma/config.exs"
8
9 if File.exists?(config_path) do
10 import_config config_path
11 else
12 warning = [
13 IO.ANSI.red(),
14 IO.ANSI.bright(),
15 "!!! #{config_path} not found! Please ensure it exists and that PLEROMA_CONFIG_PATH is unset or points to an existing file",
16 IO.ANSI.reset()
17 ]
18
19 IO.puts(warning)
20 end