Software /
code /
prosody
Diff
prosodyctl @ 10129:406afedc9375
prosodyctl: Changed the command 'admin_add' to 'admin_operation', which will be called by both add/remove operations
author | João Duarte <jvsDuarte08@gmail.com> |
---|---|
date | Tue, 25 Jun 2019 00:52:12 +0100 |
parent | 10128:026815f8d832 |
child | 10130:667f37603308 |
line wrap: on
line diff
--- a/prosodyctl Fri Jun 21 19:03:04 2019 +0100 +++ b/prosodyctl Tue Jun 25 00:52:12 2019 +0100 @@ -98,7 +98,7 @@ 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 @@ 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()