projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
135c196
)
fix for new instances
author
Alexander Strizhakov
<alex.strizhakov@gmail.com>
Sun, 16 Jun 2019 10:01:15 +0000
(10:01 +0000)
committer
lain
<lain@soykaf.club>
Sun, 16 Jun 2019 10:01:15 +0000
(10:01 +0000)
lib/pleroma/config/transfer_task.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/config/transfer_task.ex
b/lib/pleroma/config/transfer_task.ex
index 0d6ece8073b0f70ca8fb2208e0e3622f60a85fdd..a8cbfa52a69f2c81cc696ee032dce999ac00b20b 100644
(file)
--- 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