aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo?o Duarte <jvsDuarte08@gmail.com>2019-06-25 12:02:37 +0100
committerJo?o Duarte <jvsDuarte08@gmail.com>2019-06-25 12:02:37 +0100
commit7673a68043b3e8682a82003780c2112fbf28321e (patch)
tree42093bbb740faacea015438c6335ccae52789ab8
parent554f3210e10ed9fad88f5e37f859fe7396fe984f (diff)
downloadprosody-7673a68043b3e8682a82003780c2112fbf28321e.tar.gz
prosody-7673a68043b3e8682a82003780c2112fbf28321e.zip
prosodyctl: Added the 'admin_add' command
-rwxr-xr-xprosodyctl4
1 files changed, 4 insertions, 0 deletions
diff --git a/prosodyctl b/prosodyctl
index 56fa3f24..1180d039 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -114,6 +114,10 @@ function admin_operation(operation, arg)
os.execute("luarocks-admin "..tree..operation..server..refresh..modules)
end
+function commands.admin_add(arg)
+ admin_operation("add ", arg)
+end
+
function commands.enabled_plugins()
for module in modulemanager.get_modules_for_host() do
show_warning("%s", module)