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:"