From c985da0564e3dbfb48517fdd5823c87589114cad Mon Sep 17 00:00:00 2001 From: Gardais Jeremy Date: Wed, 14 Feb 2018 10:28:31 +0100 Subject: [PATCH] Ensure to install unzip dependancie if not available --- scripts/download_clonezilla.sh | 4 ++++ scripts/download_diag_tools.sh | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/scripts/download_clonezilla.sh b/scripts/download_clonezilla.sh index df406c9..3a22e00 100755 --- a/scripts/download_clonezilla.sh +++ b/scripts/download_clonezilla.sh @@ -10,6 +10,10 @@ else TFTP_DIRECTORY="/srv/tftp" fi +if ! command -v unzip > /dev/null; then + apt install unzip +fi + CZ_INSTALLER_DIR="${TFTP_DIRECTORY}/installer/clonezilla" CZ_CONFIG_PXE="${CZ_INSTALLER_DIR}/menu.cfg.example" CZ_VERSION="2.5.0-5" diff --git a/scripts/download_diag_tools.sh b/scripts/download_diag_tools.sh index 8623d20..5164d1b 100755 --- a/scripts/download_diag_tools.sh +++ b/scripts/download_diag_tools.sh @@ -9,6 +9,11 @@ else TFTP_DIRECTORY="/srv/tftp" fi + +if ! command -v unzip > /dev/null; then + apt install unzip +fi + ### Memtest {{{ MEMTEST_VERSION="5.01" MEMTEST_URL="http://www.memtest.org/download/${MEMTEST_VERSION}/memtest86+-${MEMTEST_VERSION}.bin.gz"