aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Duarte <jvsDuarte08@gmail.com>2019-07-24 04:44:44 -0700
committerJoão Duarte <jvsDuarte08@gmail.com>2019-07-24 04:44:44 -0700
commitc84fa6fd262025b7394f4e51992ffaacdb9c6eb3 (patch)
treeb5bd4e2c665315f044ba4176665b0af1e320f0c6
parentd38ebec46613682f618c932b1ab16b6ca5f9e6cd (diff)
downloadprosody-c84fa6fd262025b7394f4e51992ffaacdb9c6eb3.tar.gz
prosody-c84fa6fd262025b7394f4e51992ffaacdb9c6eb3.zip
util.prosodyctl: Removed the admin_operation command
-rw-r--r--util/prosodyctl.lua22
1 files changed, 0 insertions, 22 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua
index 84f65665..5e19937e 100644
--- a/util/prosodyctl.lua
+++ b/util/prosodyctl.lua
@@ -288,27 +288,6 @@ local function reload()
return true;
end
-local function admin_operation(operation, arg)
- if arg[1] == "--help" then
- print(" admin-"..operation)
- print(" "..operation.."plugins from a server (repository)")
- return 1;
- end
- local modules, tree, server, refresh = "", "", "", ""
- for i, _ in ipairs(arg) do
- if arg[i]:sub(1, #"--tree=") == "--tree=" then
- tree = arg[i].." "
- elseif arg[i]:sub(1, #"--server=") == "--server=" then
- server = arg[i].." "
- elseif arg[i]:sub(1, #"--no-refresh") == "--no-refresh" then
- refresh = arg[i].." "
- else
- modules=modules..arg[i].." "
- end
- end
- os.execute("luarocks-admin "..tree..operation..server..refresh..modules)
-end
-
return {
show_message = show_message;
show_warning = show_message;
@@ -329,5 +308,4 @@ return {
start = start;
stop = stop;
reload = reload;
- admin_operation = admin_operation;
};