diff options
author | João Duarte <jvsDuarte08@gmail.com> | 2019-06-25 00:52:12 +0100 |
---|---|---|
committer | João Duarte <jvsDuarte08@gmail.com> | 2019-06-25 00:52:12 +0100 |
commit | b12ba155400cc80ff269a100e18bcbdd53f86041 (patch) | |
tree | ece2173d5b4391cccbc31b693caaad289518788b | |
parent | 1fda45e5860bbfd748ec163b4f7ebe03d1ba7c7e (diff) | |
download | prosody-b12ba155400cc80ff269a100e18bcbdd53f86041.tar.gz prosody-b12ba155400cc80ff269a100e18bcbdd53f86041.zip |
prosodyctl: Changed the command 'admin_add' to 'admin_operation', which will be called by both add/remove operations
-rwxr-xr-x | prosodyctl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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() |