Remove unnecessary keys command
This commit is contained in:
parent
6a97885ea3
commit
6334ba9ad3
1 changed files with 0 additions and 28 deletions
|
@ -99,34 +99,6 @@ def run(["groups"]) do
|
|||
end
|
||||
end
|
||||
|
||||
def run(["keys", group]) do
|
||||
with true <- Pleroma.Config.get([:configurable_from_database]) do
|
||||
start_pleroma()
|
||||
|
||||
group = maybe_atomize(group)
|
||||
|
||||
keys =
|
||||
ConfigDB
|
||||
|> Repo.all()
|
||||
|> Enum.map(fn x ->
|
||||
if x.group == group do
|
||||
x.key
|
||||
end
|
||||
end)
|
||||
|> Enum.sort()
|
||||
|> Enum.uniq()
|
||||
|> Enum.reject(fn x -> x == nil end)
|
||||
|
||||
if length(keys) > 0 do
|
||||
shell_info("The following configuration keys under :#{group} are set in ConfigDB:\r\n")
|
||||
keys |> Enum.each(fn x -> shell_info("- #{x}") end)
|
||||
shell_info("\r\n")
|
||||
end
|
||||
else
|
||||
_ -> configdb_not_enabled()
|
||||
end
|
||||
end
|
||||
|
||||
def run(["reset"]) do
|
||||
with true <- Pleroma.Config.get([:configurable_from_database]) do
|
||||
start_pleroma()
|
||||
|
|
Loading…
Reference in a new issue