From: Alexander Strizhakov Date: Sun, 16 Jun 2019 10:01:15 +0000 (+0000) Subject: fix for new instances X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=7a4228be5ab53d50fdc571323394363980546c09;p=akkoma fix for new instances --- diff --git a/lib/pleroma/config/transfer_task.ex b/lib/pleroma/config/transfer_task.ex index 0d6ece807..a8cbfa52a 100644 --- a/lib/pleroma/config/transfer_task.ex +++ b/lib/pleroma/config/transfer_task.ex @@ -9,7 +9,8 @@ defmodule Pleroma.Config.TransferTask 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