From ff7c68ef5c6eebb02fe4eeb48cce55dd5ee59daf Mon Sep 17 00:00:00 2001 From: Mauro Rosero P Date: Thu, 12 Dec 2024 23:56:54 -0500 Subject: [PATCH] =?UTF-8?q?[MODIFIED]=20Verificaci=C3=B3n=20de=20pre-requi?= =?UTF-8?q?sito=20e=20instalaci=C3=B3n=20de=20utilitario=20zip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/bootstrap.sh | 3 ++- bin/gpg_backup.sh | 6 ++++++ bin/msg/head.es | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/bootstrap.sh b/bin/bootstrap.sh index 27f69bc..8edecfb 100755 --- a/bin/bootstrap.sh +++ b/bin/bootstrap.sh @@ -56,6 +56,7 @@ install() { local DIALOG_PACKAGE=dialog local SOPS_PACKAGE=sops local GNUPG_PACKAGE=gnupg + local ZIP_PACKAGE=zip local SQLITE_COMMAND=sqlite3 local SQLITE_PACKAGE="$SQLITE_COMMAND libsqlite3-dev" @@ -100,7 +101,7 @@ install() { command_installed $DIALOG_PACKAGE if [ $? -ne 0 ] then - os_pkgs_install $DIALOG_PACKAGE + os_pkgs_install $ZIP_PACKAGE fi # Install sqlite3 from OS Packages diff --git a/bin/gpg_backup.sh b/bin/gpg_backup.sh index 2bba6d2..4a90868 100755 --- a/bin/gpg_backup.sh +++ b/bin/gpg_backup.sh @@ -72,6 +72,12 @@ then exit 3 fi +command_installed "zip" +if [ $? -ne 0 ]; then + dialog_error_box "${head_error}" "${head_zip}" + exit 9 +fi + # Backup de claves GPG dialog_yesno "${gpmsg_105}" case ${result} in diff --git a/bin/msg/head.es b/bin/msg/head.es index 2f4fa1f..07accdd 100644 --- a/bin/msg/head.es +++ b/bin/msg/head.es @@ -36,6 +36,7 @@ head_nobuild="No existe carpeta build para creación de contenedores" head_nodockerfile="No existe el archivo de configuración Dockerfile" head_nobuilded="No se pudo completar la construcción del contenedor" head_builded="Construcción del contenedor completada!" +head_zip="Utilitario zip no ha sido instalado!" head_container="Generando contenedor" label_email="Correo Electrónico:"