Comparison

prosodyctl @ 10130:667f37603308

prosodyctl: Added the 'admin_add' command
author João Duarte <jvsDuarte08@gmail.com>
date Tue, 25 Jun 2019 12:02:37 +0100
parent 10129:406afedc9375
child 10131:0780bcf51ba7
comparison
equal deleted inserted replaced
10129:406afedc9375 10130:667f37603308
110 else 110 else
111 modules=modules..arg[i].." " 111 modules=modules..arg[i].." "
112 end 112 end
113 end 113 end
114 os.execute("luarocks-admin "..tree..operation..server..refresh..modules) 114 os.execute("luarocks-admin "..tree..operation..server..refresh..modules)
115 end
116
117 function commands.admin_add(arg)
118 admin_operation("add ", arg)
115 end 119 end
116 120
117 function commands.enabled_plugins() 121 function commands.enabled_plugins()
118 for module in modulemanager.get_modules_for_host() do 122 for module in modulemanager.get_modules_for_host() do
119 show_warning("%s", module) 123 show_warning("%s", module)