Matty9191 / ssl-cert-check

Send notifications when SSL certificates are about to expire.
GNU General Public License v2.0
719 stars 285 forks source link

Warndays variable gets reset #127

Open cbloss opened 1 year ago

cbloss commented 1 year ago

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!