ssl-cert-check icon indicating copy to clipboard operation
ssl-cert-check copied to clipboard

Warndays variable gets reset

Open cbloss opened this issue 2 years ago • 0 comments

Okay first off: FREAKIN' LOVE THIS SCRIPT. It's amazing and has REALLY saved us. Secondly, I think the warnday variable gets reset. Here's the command I'm using: bash ssl-cert-check -f storage/app/ssldomains -x 10

I added some echos of gibberish (you have to love testing). In the if statement where the details of the cert gets printed (around line 798), the WARNDAYS variable gets reset to 30 (default).

image

I adapted the script to only show sites that are expiring based on the -x option if there's an -F flag thrown in. We have a lot of sites. I don't need to see all of them. :)

Again, thank you so much!

cbloss avatar Jan 31 '23 16:01 cbloss