aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorJo?o Duarte <jvsDuarte08@gmail.com>2019-06-25 00:52:12 +0100
committerJo?o Duarte <jvsDuarte08@gmail.com>2019-06-25 00:52:12 +0100
commit554f3210e10ed9fad88f5e37f859fe7396fe984f (patch)
treeece2173d5b4391cccbc31b693caaad289518788b /prosodyctl
parent06188cd48624caf6a3ff64a8e6a111d893afd2da (diff)
downloadprosody-554f3210e10ed9fad88f5e37f859fe7396fe984f.tar.gz
prosody-554f3210e10ed9fad88f5e37f859fe7396fe984f.zip
prosodyctl: Changed the command 'admin_add' to 'admin_operation', which will be called by both add/remove operations
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl4
1 files changed, 2 insertions, 2 deletions
diff --git a/prosodyctl b/prosodyctl
index efe6394e..56fa3f24 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -98,7 +98,7 @@ function commands.list(arg)
end
end
-function commands.admin_add(arg)
+function admin_operation(operation, arg)
local modules, tree, server, refresh = "", "", "", ""
for i, _ in ipairs(arg) do
if arg[i]:sub(1, #"--tree=") == "--tree=" then
@@ -111,7 +111,7 @@ function commands.admin_add(arg)
modules=modules..arg[i].." "
end
end
- os.execute("luarocks-admin "..tree.."add "..server..refresh..modules)
+ os.execute("luarocks-admin "..tree..operation..server..refresh..modules)
end
function commands.enabled_plugins()