Enhance step-ca.sh to update step-badger

Added logic to check for and update step-badger.
This commit is contained in:
Joerg Heinemann 2026-02-11 15:28:44 +01:00 committed by GitHub
parent f30b34151d
commit 954202e8a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,11 +27,15 @@ function update_script() {
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit exit
fi fi
msg_info "Updating step-ca and step-cli" msg_info "Updating step-ca and step-cli"
$STD apt update $STD apt update
$STD apt upgrade -y step-ca step-cli $STD apt upgrade -y step-ca step-cli
msg_ok "Updated step-ca and step-cli" msg_ok "Updated step-ca and step-cli"
if check_for_gh_release "step-badger" "lukasz-lobocki/step-badger"; then
fetch_and_deploy_gh_release "step-badger" "lukasz-lobocki/step-badger" "prebuild" "latest" "/opt/step-badger" "step-badger_Linux_x86_64.tar.gz"
msg_ok "Updated successfully!"
fi
msg_ok "Updated successfully!" msg_ok "Updated successfully!"
exit exit
} }