[MODIFIED] Verificación de pre-requisito e instalación de utilitario zip

This commit is contained in:
Mauro Rosero P. 2024-12-12 23:56:54 -05:00
parent b52f073424
commit ff7c68ef5c
Signed by: mrosero
GPG key ID: 83BD2A5F674B7E26
3 changed files with 9 additions and 1 deletions

View file

@ -56,6 +56,7 @@ install() {
local DIALOG_PACKAGE=dialog local DIALOG_PACKAGE=dialog
local SOPS_PACKAGE=sops local SOPS_PACKAGE=sops
local GNUPG_PACKAGE=gnupg local GNUPG_PACKAGE=gnupg
local ZIP_PACKAGE=zip
local SQLITE_COMMAND=sqlite3 local SQLITE_COMMAND=sqlite3
local SQLITE_PACKAGE="$SQLITE_COMMAND libsqlite3-dev" local SQLITE_PACKAGE="$SQLITE_COMMAND libsqlite3-dev"
@ -100,7 +101,7 @@ install() {
command_installed $DIALOG_PACKAGE command_installed $DIALOG_PACKAGE
if [ $? -ne 0 ] if [ $? -ne 0 ]
then then
os_pkgs_install $DIALOG_PACKAGE os_pkgs_install $ZIP_PACKAGE
fi fi
# Install sqlite3 from OS Packages # Install sqlite3 from OS Packages

View file

@ -72,6 +72,12 @@ then
exit 3 exit 3
fi fi
command_installed "zip"
if [ $? -ne 0 ]; then
dialog_error_box "${head_error}" "${head_zip}"
exit 9
fi
# Backup de claves GPG # Backup de claves GPG
dialog_yesno "${gpmsg_105}" dialog_yesno "${gpmsg_105}"
case ${result} in case ${result} in

View file

@ -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_nodockerfile="No existe el archivo de configuración Dockerfile"
head_nobuilded="No se pudo completar la construcción del contenedor" head_nobuilded="No se pudo completar la construcción del contenedor"
head_builded="Construcción del contenedor completada!" head_builded="Construcción del contenedor completada!"
head_zip="Utilitario zip no ha sido instalado!"
head_container="Generando contenedor" head_container="Generando contenedor"
label_email="Correo Electrónico:" label_email="Correo Electrónico:"