]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
redirect output of cert expiry check (fixes #713)
authorLukas Schauer <lukas@schauer.so>
Thu, 2 Apr 2020 10:44:40 +0000 (12:44 +0200)
committerLukas Schauer <lukas@schauer.so>
Thu, 2 Apr 2020 10:44:40 +0000 (12:44 +0200)
dehydrated

index 0965af914f0a06a2c688a3e1e0b545960d68d246..842e721ec5bb9abae9e9d9b5a67a0ec917f5bfb2 100755 (executable)
@@ -1347,7 +1347,7 @@ command_sign_domains() {
       valid="$("${OPENSSL}" x509 -enddate -noout -in "${cert}" | cut -d= -f2- )"
 
       printf " + Valid till %s " "${valid}"
-      if "${OPENSSL}" x509 -checkend $((RENEW_DAYS * 86400)) -noout -in "${cert}"; then
+      if ("${OPENSSL}" x509 -checkend $((RENEW_DAYS * 86400)) -noout -in "${cert}" > /dev/null 2>&1); then
         printf "(Longer than %d days). " "${RENEW_DAYS}"
         if [[ "${force_renew}" = "yes" ]]; then
           echo "Ignoring because renew was forced!"