# HG changeset patch # User João Duarte # Date 1563968684 25200 # Node ID 2cb48153f9e06d796415f2df81e897ac0ec205ba # Parent c6e166272d94c28cd6ed4601b79a27ef06bd01f0 util.prosodyctl: Removed the admin_operation command diff -r c6e166272d94 -r 2cb48153f9e0 util/prosodyctl.lua --- a/util/prosodyctl.lua Wed Jul 24 04:42:45 2019 -0700 +++ b/util/prosodyctl.lua Wed Jul 24 04:44:44 2019 -0700 @@ -288,27 +288,6 @@ 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 @@ start = start; stop = stop; reload = reload; - admin_operation = admin_operation; };