From 68b7af2071806e4863e747adc8bde1f2381e6c60 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Mon, 5 May 2025 12:02:50 +0200 Subject: [PATCH] Update customizable_post_install.sh --- scripts/customizable_post_install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/customizable_post_install.sh b/scripts/customizable_post_install.sh index c2d27a3..a9aecd6 100644 --- a/scripts/customizable_post_install.sh +++ b/scripts/customizable_post_install.sh @@ -1574,7 +1574,6 @@ install_lynis_() { install_lynis() { msg_info2 "$(translate "Installing latest Lynis security scan tool...")" - # Instalar Git si no está presente if ! command -v git >/dev/null 2>&1; then msg_info "$(translate "Installing Git as a prerequisite...")" apt-get update -qq >/dev/null 2>&1 @@ -1582,7 +1581,10 @@ install_lynis() { msg_ok "$(translate "Git installed")" fi - # Clonar Lynis desde GitHub (oculto) + if [ -d /opt/lynis ]; then + rm -rf /opt/lynis >/dev/null 2>&1 + fi + msg_info "$(translate "Cloning Lynis from GitHub...")" if git clone --quiet https://github.com/CISOfy/lynis.git /opt/lynis >/dev/null 2>&1; then ln -sf /opt/lynis/lynis /usr/local/bin/lynis >/dev/null 2>&1 @@ -1593,7 +1595,6 @@ install_lynis() { return 1 fi - # Verificación if command -v lynis >/dev/null 2>&1; then msg_success "$(translate "Lynis is ready to use")" else @@ -1605,7 +1606,6 @@ install_lynis() { - # ==========================================================