don't restart pleroma in mix tasks

This commit is contained in:
Alexander Strizhakov 2020-07-03 20:12:00 +03:00
commit b28cc15459
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
2 changed files with 7 additions and 3 deletions

View file

@ -31,8 +31,8 @@ defmodule Pleroma.Config.TransferTask do
{:pleroma, :gopher, [:enabled]}
]
def start_link(_) do
load_and_update_env()
def start_link(restart_pleroma? \\ true) do
load_and_update_env([], restart_pleroma?)
if Config.get(:env) == :test, do: Ecto.Adapters.SQL.Sandbox.checkin(Repo)
:ignore
end