util/prosodyctl.lua
changeset 10189 02d8f475a96d
parent 10187 5eba710e33f9
child 10191 85725e11c509
--- a/util/prosodyctl.lua	Wed Jul 31 10:07:22 2019 -0700
+++ b/util/prosodyctl.lua	Wed Jul 31 10:22:11 2019 -0700
@@ -312,7 +312,11 @@
 	elseif operation == "remove" then
 		show_message("Removing %s from %s", mod, dir);
 	end
-	os.execute("luarocks --tree='"..dir.."' --server='http://localhost/' "..operation.." "..mod);
+	if operation == "list" then
+		os.execute("luarocks list --tree='"..dir.."'")
+	else
+		os.execute("luarocks --tree='"..dir.."' --server='http://localhost/' "..operation.." "..mod);
+	end
 	if operation == "install" then
 		show_module_configuration_help(mod);
 	end