prosodyctl: check certs: Update messages to account for 'ssl' option maybe not existing
authorKim Alvefur <zash@zash.se>
Sun, 28 Feb 2016 17:23:24 +0000 (18:23 +0100)
committerKim Alvefur <zash@zash.se>
Sun, 28 Feb 2016 17:23:24 +0000 (18:23 +0100)
prosodyctl

index 2972aa5365a9fc3f0d0bd0ddf044851166c8c469..4ae1136c75c01cb1d631a96c0e30817f18eba6b9 100755 (executable)
@@ -1220,10 +1220,10 @@ function commands.check(arg)
                                        print("  Error: "..err);
                                        cert_ok = false
                                elseif not ssl_config.certificate then
-                                       print("  No 'certificate' set in ssl option for "..host)
+                                       print("  No 'certificate' found for "..host)
                                        cert_ok = false
                                elseif not ssl_config.key then
-                                       print("  No 'key' set in ssl option for "..host)
+                                       print("  No 'key' found for for "..host)
                                        cert_ok = false
                                else
                                        local key, err = io.open(ssl_config.key); -- Permissions check only