summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2020-11-28 12:22:30 -0600
committerMark Felder <feld@FreeBSD.org>2020-12-02 10:43:22 -0600
commit6334ba9ad3d275e9e50b30319e2dbed3aac35fac (patch)
tree98f1af2b28475229582915bf4aaedef4248b3df8
parent6a97885ea30195b84b008391db26cc7d570f97cf (diff)
Remove unnecessary keys command
-rw-r--r--lib/mix/tasks/pleroma/config.ex28
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/mix/tasks/pleroma/config.ex b/lib/mix/tasks/pleroma/config.ex
index fe0cd81f8..f657adf46 100644
--- a/lib/mix/tasks/pleroma/config.ex
+++ b/lib/mix/tasks/pleroma/config.ex
@@ -99,34 +99,6 @@ defmodule Mix.Tasks.Pleroma.Config 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()