mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-30 09:02:28 +00:00
Merge branch 'fix-for-new-isntances' into 'develop'
fix for new instances See merge request pleroma/pleroma!1294
This commit is contained in:
commit
549a410fda
|
@ -9,7 +9,8 @@ defmodule Pleroma.Config.TransferTask do
|
||||||
end
|
end
|
||||||
|
|
||||||
def load_and_update_env do
|
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)
|
Pleroma.Repo.all(Config)
|
||||||
|> Enum.each(&update_env(&1))
|
|> Enum.each(&update_env(&1))
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue