need_reboot flag
This commit is contained in:
parent
1262357ddb
commit
dad23e3766
6 changed files with 218 additions and 72 deletions
|
|
@ -146,9 +146,7 @@ defmodule Pleroma.Config.TransferTask do
|
|||
defp update_env(group, key, nil), do: Application.delete_env(group, key)
|
||||
defp update_env(group, key, value), do: Application.put_env(group, key, value)
|
||||
|
||||
defp restart(_, :pleroma, :test), do: Logger.warn("pleroma restarted")
|
||||
|
||||
defp restart(_, :pleroma, _), do: send(Restarter.Pleroma, :after_boot)
|
||||
defp restart(_, :pleroma, env), do: Restarter.Pleroma.restart_after_boot(env)
|
||||
|
||||
defp restart(started_applications, app, _) do
|
||||
with {^app, _, _} <- List.keyfind(started_applications, app, 0),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue