mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 04:06:54 +00:00
Update customizable_post_install.sh
This commit is contained in:
parent
a076dc5a58
commit
68b7af2071
@ -1574,7 +1574,6 @@ install_lynis_() {
|
|||||||
install_lynis() {
|
install_lynis() {
|
||||||
msg_info2 "$(translate "Installing latest Lynis security scan tool...")"
|
msg_info2 "$(translate "Installing latest Lynis security scan tool...")"
|
||||||
|
|
||||||
# Instalar Git si no está presente
|
|
||||||
if ! command -v git >/dev/null 2>&1; then
|
if ! command -v git >/dev/null 2>&1; then
|
||||||
msg_info "$(translate "Installing Git as a prerequisite...")"
|
msg_info "$(translate "Installing Git as a prerequisite...")"
|
||||||
apt-get update -qq >/dev/null 2>&1
|
apt-get update -qq >/dev/null 2>&1
|
||||||
@ -1582,7 +1581,10 @@ install_lynis() {
|
|||||||
msg_ok "$(translate "Git installed")"
|
msg_ok "$(translate "Git installed")"
|
||||||
fi
|
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...")"
|
msg_info "$(translate "Cloning Lynis from GitHub...")"
|
||||||
if git clone --quiet https://github.com/CISOfy/lynis.git /opt/lynis >/dev/null 2>&1; then
|
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
|
ln -sf /opt/lynis/lynis /usr/local/bin/lynis >/dev/null 2>&1
|
||||||
@ -1593,7 +1595,6 @@ install_lynis() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Verificación
|
|
||||||
if command -v lynis >/dev/null 2>&1; then
|
if command -v lynis >/dev/null 2>&1; then
|
||||||
msg_success "$(translate "Lynis is ready to use")"
|
msg_success "$(translate "Lynis is ready to use")"
|
||||||
else
|
else
|
||||||
@ -1605,7 +1606,6 @@ install_lynis() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# ==========================================================
|
# ==========================================================
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user