Commit 7a4228be authored by Alexander Strizhakov's avatar Alexander Strizhakov Committed by lain

fix for new instances

parent 135c1967
......@@ -9,7 +9,8 @@ def start_link do
end
def load_and_update_env do
if Pleroma.Config.get([:instance, :dynamic_configuration]) do
if Pleroma.Config.get([:instance, :dynamic_configuration]) and
Ecto.Adapters.SQL.table_exists?(Pleroma.Repo, "config") do
Pleroma.Repo.all(Config)
|> Enum.each(&update_env(&1))
end
......
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