util/prosodyctl.lua
changeset 10187 5eba710e33f9
parent 10185 c7d5cd766533
child 10189 02d8f475a96d
--- a/util/prosodyctl.lua	Wed Jul 31 07:31:03 2019 -0700
+++ b/util/prosodyctl.lua	Wed Jul 31 10:02:42 2019 -0700
@@ -307,9 +307,15 @@
 end
 
 local function call_luarocks(operation, mod, dir)
+	if operation == "install" then
 		show_message("Installing %s at %s", mod, dir);
-		os.execute("luarocks --tree='"..dir.."' --server='http://localhost/' "..operation.." "..mod);
+	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 == "install" then
 		show_module_configuration_help(mod);
+	end
 end
 
 return {