Skip to content

Commit

Permalink
Fix if statement in install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jakefhyde committed Aug 7, 2024
1 parent ae76dcf commit 355b129
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ fi
# - CATTLE_AGENT_UNINSTALL_LOCAL (default: false)
# - CATTLE_AGENT_UNINSTALL_LOCAL_LOCATION (default: )
# - CATTLE_AGENT_STRICT_VERIFY | STRICT_VERIFY (default: false)
# - CATTLE_AGENT_FALLBACK_PATH (default: )

FALLBACK=v0.2.9
CACERTS_PATH=cacerts
Expand Down Expand Up @@ -887,7 +888,7 @@ do_install() {
if [ -z "${CATTLE_CA_CHECKSUM}" ] && [ $(echo "${CATTLE_AGENT_STRICT_VERIFY}" | tr '[:upper:]' '[:lower:]') = "true" ]; then
fatal "Aborting system-agent installation due to requested strict CA verification with no CA checksum provided"
fi
if [ -n "${CATTLE_CA_CHECKSUM}" && [ $(echo "${CATTLE_AGENT_STRICT_VERIFY}" | tr '[:upper:]' '[:lower:]') != "true" ]; then
if [ -n "${CATTLE_CA_CHECKSUM}" ] && [ $(echo "${CATTLE_AGENT_STRICT_VERIFY}" | tr '[:upper:]' '[:lower:]') != "true" ]; then
validate_ca_required
fi
validate_ca_checksum
Expand Down

0 comments on commit 355b129

Please sign in to comment.