From b6f5e97e0db3c5e96b8b31569460b5b90c469aa7 Mon Sep 17 00:00:00 2001 From: Tony Cavella <9434191+acavella@users.noreply.github.com> Date: Fri, 29 Dec 2023 01:17:03 +0000 Subject: [PATCH] update revoke.sh cleanup show_version --- revoke.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/revoke.sh b/revoke.sh index 0c276b4..d4dc24f 100755 --- a/revoke.sh +++ b/revoke.sh @@ -27,7 +27,6 @@ defgw=$(./lib/yq4 -r .default.gateway ${config}) show_version() { printf "$(date '+%Y-%m-%dT%H:%M:%S') [info] Revoke version: ${ver}\n" printf "$(date '+%Y-%m-%dT%H:%M:%S') [info] Bash version: ${BASH_VERSION}\n" - printf "$(date '+%Y-%m-%dT%H:%M:%S') [info] Operating system: ${DETECTED_OS}\n" } make_temporary_log() { @@ -91,7 +90,7 @@ download_crl() { printf "$(date '+%Y-%m-%dT%H:%M:%S') [error] download failed ${crlID} zero byte file ${tempfile}\n" exit 1 fi - openssl crl -inform DER -text -noout -in ${tempfile} | grep 'Certificate Revocation List' &> /dev/null + /usr/bin/openssl crl -inform DER -text -noout -in ${tempfile} | grep 'Certificate Revocation List' &> /dev/null if [ $? == 1 ] then printf "$(date '+%Y-%m-%dT%H:%M:%S') [error] download failed ${crlID} invalid crl ${tempfile}\n"