equal
deleted
inserted
replaced
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 |