Commit 822a9f28 authored by lain's avatar lain

Merge branch 'release-config-import' into 'develop'

Import release config from env variable or /etc/pleroma/config.exs and warn if the file is missing

See merge request !1269
parents 42656080 f0d96534
Pipeline #13094 passed with stages
in 9 minutes and 27 seconds
import Config
config_path = System.get_env("PLEROMA_CONFIG_PATH") || "/etc/pleroma/config.exs"
if File.exists?(config_path) do
import_config config_path
warning = [,
"!!! #{config_path} not found! Please ensure it exists and that PLEROMA_CONFIG_PATH is unset or points to an existing file",
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment