prosodyctl
changeset 5655 6d7f7548b2c9
parent 5620 8349ae2a44ce
child 5657 7957f14038e8
equal deleted inserted replaced
5654:020c5cd6eb28 5655:6d7f7548b2c9
   778 	end
   778 	end
   779 	show_usage("cert config|request|generate|key", "Helpers for generating X.509 certificates and keys.")
   779 	show_usage("cert config|request|generate|key", "Helpers for generating X.509 certificates and keys.")
   780 end
   780 end
   781 
   781 
   782 function commands.check(arg)
   782 function commands.check(arg)
       
   783 	if arg[1] == "--help" then
       
   784 		show_usage([[check]], [[Perform basic checks on your Prosody installation]]);
       
   785 		return 1;
       
   786 	end
   783 	local what = table.remove(arg, 1);
   787 	local what = table.remove(arg, 1);
   784 	local array, set = require "util.array", require "util.set";
   788 	local array, set = require "util.array", require "util.set";
   785 	local it = require "util.iterators";
   789 	local it = require "util.iterators";
   786 	local ok = true;
   790 	local ok = true;
   787 	if not what or what == "config" then
   791 	if not what or what == "config" then