diff options
author | João Duarte <jvsDuarte08@gmail.com> | 2019-07-24 04:42:45 -0700 |
---|---|---|
committer | João Duarte <jvsDuarte08@gmail.com> | 2019-07-24 04:42:45 -0700 |
commit | d38ebec46613682f618c932b1ab16b6ca5f9e6cd (patch) | |
tree | 56215bde94537bff5c56c0e486ccf161c7901e07 /prosodyctl | |
parent | 66afe675789f0161a1eb4a73605ed0e03015323a (diff) | |
download | prosody-d38ebec46613682f618c932b1ab16b6ca5f9e6cd.tar.gz prosody-d38ebec46613682f618c932b1ab16b6ca5f9e6cd.zip |
prosodyctl: Removed the make, admin_add and admin_remove commands
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -85,17 +85,6 @@ local prosodyctl_timeout = (configmanager.get("*", "prosodyctl_timeout") or 5) * local commands = {}; local command = table.remove(arg, 1); --- Command to install a rockspec with local sources --- The module is installed at the plugins folder -function commands.make(arg) - if arg[1] == "--help" then - show_usage([[make]], [[Installs a module with sources available locally]]); - return 1; - end - os.execute("cd downloaded_modules/"..arg[1].." && luarocks --tree='../../plugins' make "..arg[1].."-scm-1.rockspec") - return 0; -end - -- Command to remove a rockspec -- Receives as an argument the name of the plugin to be removed from the plugins folder function commands.remove(arg) @@ -163,16 +152,6 @@ function commands.list(arg) end end -function commands.admin_add(arg) - prosodyctl.admin_operation("add ", arg) - return 0; -end - -function commands.admin_remove(arg) - prosodyctl.admin_operation("remove ", arg) - return 0; -end - function commands.enabled_plugins(arg) if arg[1] == "--help" then show_usage([[enabled_plugins]], [[Shows plugins currently enabled on prosody]]); |