f8494dd345c47296a258463e02baaced86c3efbb
[akkoma] / config / releases.exs
1 import Config
2
3 config_path = System.get_env("PLEROMA_CONFIG_PATH") || "/etc/pleroma/config.exs"
4
5 if File.exists?(config_path) do
6 import_config config_path
7 else
8 warning = [
9 IO.ANSI.red(),
10 IO.ANSI.bright(),
11 "!!! #{config_path} not found! Please ensure it exists and that PLEROMA_CONFIG_PATH is unset or points to an existing file",
12 IO.ANSI.reset()
13 ]
14
15 IO.puts(warning)
16 end