From ef406a567770b8acf3e285fd349c8df8826b65e6 Mon Sep 17 00:00:00 2001 From: Alvin <107904113+alvin5840@users.noreply.github.com> Date: Sat, 11 Mar 2023 17:55:51 +0800 Subject: [PATCH] Update install.sh feat(trivy): add md5 --- hummerrisk/install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hummerrisk/install.sh b/hummerrisk/install.sh index 25d24d6..b2c10c8 100755 --- a/hummerrisk/install.sh +++ b/hummerrisk/install.sh @@ -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/" }