aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
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
commit6021b5871292b692043b80334ecbe1133965519d (patch)
tree42093bbb740faacea015438c6335ccae52789ab8 /prosodyctl
parentb12ba155400cc80ff269a100e18bcbdd53f86041 (diff)
downloadprosody-6021b5871292b692043b80334ecbe1133965519d.tar.gz
prosody-6021b5871292b692043b80334ecbe1133965519d.zip
prosodyctl: Added the 'admin_add' command
Diffstat (limited to 'prosodyctl')
-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)