From a3ca96431eff86448bfda9ddcd4b72c640efa46c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathana=C3=ABl=20HANNEBERT?= Date: Fri, 10 Dec 2021 21:40:34 +0100 Subject: [PATCH] Add sha256sum check --- scripts/install | 1 + scripts/restore | 1 + scripts/upgrade | 1 + 3 files changed, 3 insertions(+) diff --git a/scripts/install b/scripts/install index ff297f0..4840aec 100644 --- a/scripts/install +++ b/scripts/install @@ -82,6 +82,7 @@ else fi ynh_exec_quiet "wget -q -O $grafana_deb_dst $grafana_deb_url" +echo "$sha256sum grafana_deb_dst" | sha256sum -c - ynh_script_progression --message="Installing Grafana..." --weight=11 DEBIAN_FRONTEND=noninteractive ynh_exec_warn_less dpkg --force-confold -i $grafana_deb_dst diff --git a/scripts/restore b/scripts/restore index da7ad4a..ff37bee 100644 --- a/scripts/restore +++ b/scripts/restore @@ -76,6 +76,7 @@ else fi ynh_exec_quiet "wget -q -O $grafana_deb_dst $grafana_deb_url" +echo "$sha256sum grafana_deb_dst" | sha256sum -c - ynh_script_progression --message="Installing Grafana..." --weight=11 DEBIAN_FRONTEND=noninteractive ynh_exec_warn_less dpkg --force-confold -i $grafana_deb_dst diff --git a/scripts/upgrade b/scripts/upgrade index 978fc23..aca972a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -103,6 +103,7 @@ else fi ynh_exec_quiet "wget -q -O $grafana_deb_dst $grafana_deb_url" +echo "$sha256sum grafana_deb_dst" | sha256sum -c - ynh_script_progression --message="Installing Grafana..." --weight=11 DEBIAN_FRONTEND=noninteractive ynh_exec_warn_less dpkg --force-confold -i $grafana_deb_dst