X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=config%2Freleases.exs;h=19636765f51b6381ff6e18581c50fbd204624c29;hb=9e49f4627fd0346cf88d44c4ab8c46c740aab36e;hp=b224960dbff578a365455902e8a544d9edbb501e;hpb=11e010fc7742b394fe0b272d4d23a005a19efe8c;p=akkoma diff --git a/config/releases.exs b/config/releases.exs index b224960db..19636765f 100644 --- a/config/releases.exs +++ b/config/releases.exs @@ -6,6 +6,8 @@ config :pleroma, :modules, runtime_dir: "/var/lib/pleroma/modules" config_path = System.get_env("PLEROMA_CONFIG_PATH") || "/etc/pleroma/config.exs" +config :pleroma, release: true, config_path: config_path + if File.exists?(config_path) do import_config config_path else @@ -18,3 +20,12 @@ else IO.puts(warning) end + +exported_config = + config_path + |> Path.dirname() + |> Path.join("prod.exported_from_db.secret.exs") + +if File.exists?(exported_config) do + import_config exported_config +end