prosodyctl: One month is 31 days, no 13 (thanks av6)
authorKim Alvefur <zash@zash.se>
Sun, 28 Feb 2016 17:47:11 +0000 (18:47 +0100)
committerKim Alvefur <zash@zash.se>
Sun, 28 Feb 2016 17:47:11 +0000 (18:47 +0100)
prosodyctl

index 1d423b8cf271ec100d99d52d2315ad366f777181..f0f8beb1cc73b8d0e14f9d43d228fb29d3a295e1 100755 (executable)
@@ -1248,7 +1248,7 @@ function commands.check(arg)
                                                        cert_ok = false
                                                elseif not cert:validat(os.time() + 86400*7) then
                                                        print("    Certificate expires within one week.")
-                                               elseif not cert:validat(os.time() + 86400*13) then
+                                               elseif not cert:validat(os.time() + 86400*31) then
                                                        print("    Certificate expires within one month.")
                                                end
                                                if config.get(host, "component_module") == nil