tmp result file fpr debugging
This commit is contained in:
parent
e4bc26c597
commit
b20dac3b2c
@ -197,19 +197,20 @@
|
||||
fi
|
||||
done
|
||||
grep Host /home/docker/traefik/providers/*.yml >>$g_tmp/hosts
|
||||
resultfile="/tmp/ssllabs-scan-result-$$-$host"
|
||||
cat $g_tmp/hosts | cut -d '`' -f2 | sort -u | while read host
|
||||
do
|
||||
host ${host} >/dev/null 2>&1 || continue
|
||||
curl -s https://${host} >/dev/null 2>&1 || continue
|
||||
while cat /tmp/ssllabs-scan-result-$host | jq -r | egrep -q '^\[\]$'
|
||||
while cat $resultfile | jq -r | egrep -q '^\[\]$'
|
||||
do
|
||||
until ssllabs-scan --quiet ${host} >/tmp/ssllabs-scan-result-$host
|
||||
until ssllabs-scan --quiet ${host} >$resultfile
|
||||
do
|
||||
sleep 60
|
||||
done
|
||||
sleep 60
|
||||
done
|
||||
cat /tmp/ssllabs-scan-result-$host | jq '.[] | .endpoints | .[] | .grade' >${g_tmp}/ssllabs-scan-result 2>&1 >${g_tmp}/ssllabs-scan-result
|
||||
cat $resultfile | jq '.[] | .endpoints | .[] | .grade' >${g_tmp}/ssllabs-scan-result 2>&1 >${g_tmp}/ssllabs-scan-result
|
||||
if ! egrep -q 'A+|null' ${g_tmp}/ssllabs-scan-result
|
||||
then
|
||||
#if ! grep -q T ${g_tmp}/ssllabs-scan-result
|
||||
|
Loading…
Reference in New Issue
Block a user