summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-06-13 13:54:24 +0300
committerrinpatch <rinpatch@sdf.org>2019-06-13 13:54:24 +0300
commite322c665e02f7a0bf77d6f20f73a6709eda28af3 (patch)
tree2b9d773f1b0fca52bc335696084be0cd080711a5 /config
parent8dff4c71940857e2d6f7368516b81cf168f71c91 (diff)
parenta2318e9dd6c8daf5554b17e9312f1fb6e14326de (diff)
downloadpleroma-e322c665e02f7a0bf77d6f20f73a6709eda28af3.tar.gz
pleroma-e322c665e02f7a0bf77d6f20f73a6709eda28af3.zip
Merge branch 'develop' into feature/ci-release-build
Diffstat (limited to 'config')
-rw-r--r--config/releases.exs15
1 files changed, 15 insertions, 0 deletions
diff --git a/config/releases.exs b/config/releases.exs
index becde7693..f8494dd34 100644
--- a/config/releases.exs
+++ b/config/releases.exs
@@ -1 +1,16 @@
import Config
+
+config_path = System.get_env("PLEROMA_CONFIG_PATH") || "/etc/pleroma/config.exs"
+
+if File.exists?(config_path) do
+ import_config config_path
+else
+ warning = [
+ IO.ANSI.red(),
+ IO.ANSI.bright(),
+ "!!! #{config_path} not found! Please ensure it exists and that PLEROMA_CONFIG_PATH is unset or points to an existing file",
+ IO.ANSI.reset()
+ ]
+
+ IO.puts(warning)
+end