Merge branch 'patch-1' of ssh://github.com/pacija/easy-rsa into pacija-patch-1

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-03-31 19:54:22 +01:00
commit 6759e87dd9
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -1416,7 +1416,7 @@ at: $crt_in"
case $(uname 2>/dev/null) in
"Darwin"|*"BSD")
expire_date=$(date -j -f '%b %d %T %Y %Z' "$expire_date" +%s)
allow_renew_date=$(date -j -v"+${EASYRSA_CERT_RENEW}d" +%s)
allow_renew_date=$(($(date -j +%s) + 24*60*60*$EASYRSA_CERT_RENEW))
;;
*)
# This works on Windows, too, since uname doesn't exist and this is catch-all