Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
feat(trivy): add md5
  • Loading branch information
alvin5840 authored Mar 11, 2023
1 parent 7e4dd15 commit ef406a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hummerrisk/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ function post_install() {

function download_cve_data() {
triy_db=trivy-offline-v2-$(get_config TRIVY_DB_VERSION).db.tar.gz
triy_db_md5=trivy-offline-v2-$(get_config TRIVY_DB_VERSION).md5
if [[ ! -f ${triy_db} ]]; then
curl -LOk -m 600 -o ${triy_db} https://company.hummercloud.com/offline-package/trivy/trivy-db/${triy_db}
curl -LOk -m 600 -o ${triy_db_md5} https://company.hummercloud.com/offline-package/trivy/trivy-db/${triy_db_md5}
fi
tar zxf ${triy_db} -C "${HR_BASE}/data/trivy/"
}
Expand Down

0 comments on commit ef406a5

Please sign in to comment.