From 2bd0c282214c58755d03826a9aab90a9f14717ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=20Gei=C3=9Fler?= Date: Fri, 3 Apr 2026 19:39:18 +0200 Subject: [PATCH] test for push --- check_sslcerts/checksslcerts.sh | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/check_sslcerts/checksslcerts.sh b/check_sslcerts/checksslcerts.sh index 8211e20..f5e478f 100644 --- a/check_sslcerts/checksslcerts.sh +++ b/check_sslcerts/checksslcerts.sh @@ -3,8 +3,7 @@ ## crontab ## 0 4 * * * bash /data/scripts/sslcerts/create_sites.sh > /data/scripts/sslcerts/sites.txt ## 0 5 * * * bash /data/scripts/sslcerts/checksslcerts.sh 2>&1 > /tmp/checksslcert.log - -#!/bin/bash + sites=$(cat ./sites.txt) @@ -14,23 +13,14 @@ for site in `echo $sites` do export SITE_URL=$site - #echo $SITE_URL - #echo -n " - " - - notAfter=$(/usr/bin/openssl s_client -connect ${SITE_URL}:${SITE_SSL_PORT} \ -servername ${SITE_URL} 2> /dev/null | /usr/bin/openssl x509 -noout -dates | grep notAfter) - not_after=$(echo "$notAfter" | cut -d= -f2-) - #echo " $not_after" - + not_after=$(echo "$notAfter" | cut -d= -f2-) now_ts=$(date +%s) - #echo " $now_ts" - expiry_ts=$(date -d "$not_after" +%s) diff_sec=$((expiry_ts - now_ts)) diff_days=$((diff_sec / 86400)) - #echo " $diff_days" if [ "$not_after" != "" ] then