Changeset

10130:667f37603308

prosodyctl: Added the 'admin_add' command
author João Duarte <jvsDuarte08@gmail.com>
date Tue, 25 Jun 2019 12:02:37 +0100
parents 10129:406afedc9375
children 10131:0780bcf51ba7
files prosodyctl
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/prosodyctl	Tue Jun 25 00:52:12 2019 +0100
+++ b/prosodyctl	Tue Jun 25 12:02:37 2019 +0100
@@ -114,6 +114,10 @@
   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)