From 05c90f089be86fee0585ff53440bf01c39f5090e Mon Sep 17 00:00:00 2001 From: Halbe Bruno Date: Mon, 10 Feb 2025 15:48:11 -0300 Subject: [PATCH] Atualizar mod/install.sh --- mod/install.sh | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/mod/install.sh b/mod/install.sh index 7f22ad5..3c6a4b8 100644 --- a/mod/install.sh +++ b/mod/install.sh @@ -50,22 +50,21 @@ _motd() { cat << 'EOF' > "/etc/update-motd.d/$motd00" #!/bin/sh -_echo_red(){ /bin/echo -e "\033[0;31m\$@\033[0m"; } +_echo_red() { /bin/echo -e "\033[0;31m\$@\033[0m"; } -#name=\$(figlet -Wf Broadway -w 480 "ZABBIX") -name=\$(figlet -W -w 480 "ZABBIX") +# Gerar o nome "ZABBIX" com figlet e aplicar a cor vermelha +name=$(figlet -W -w 480 "ZABBIX") +_echo_red "$name" [ -r /etc/lsb-release ] && . /etc/lsb-release -if [ -z "\$DISTRIB_DESCRIPTION" ] && [ -x /usr/bin/lsb_release ]; then - # Fall back to using the very slow lsb_release utility - DISTRIB_DESCRIPTION=\$(lsb_release -s -d) +if [ -z "$DISTRIB_DESCRIPTION" ] && [ -x /usr/bin/lsb_release ]; then + # Fall back to using the very slow lsb_release utility + DISTRIB_DESCRIPTION=$(lsb_release -s -d) fi -_echo_red "\$name" printf "\n" - -printf "Bem vindo ao %s (%s).\n" "\$DISTRIB_DESCRIPTION" "\$(uname -r)" +printf "Bem vindo ao %s (%s).\n" "$DISTRIB_DESCRIPTION" "$(uname -r)" printf "\n" EOF