Atualizar mod/install.sh
This commit is contained in:
parent
00acc42b04
commit
05c90f089b
@ -50,22 +50,21 @@ _motd() {
|
|||||||
cat << 'EOF' > "/etc/update-motd.d/$motd00"
|
cat << 'EOF' > "/etc/update-motd.d/$motd00"
|
||||||
#!/bin/sh
|
#!/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")
|
# Gerar o nome "ZABBIX" com figlet e aplicar a cor vermelha
|
||||||
name=\$(figlet -W -w 480 "ZABBIX")
|
name=$(figlet -W -w 480 "ZABBIX")
|
||||||
|
_echo_red "$name"
|
||||||
|
|
||||||
[ -r /etc/lsb-release ] && . /etc/lsb-release
|
[ -r /etc/lsb-release ] && . /etc/lsb-release
|
||||||
|
|
||||||
if [ -z "\$DISTRIB_DESCRIPTION" ] && [ -x /usr/bin/lsb_release ]; then
|
if [ -z "$DISTRIB_DESCRIPTION" ] && [ -x /usr/bin/lsb_release ]; then
|
||||||
# Fall back to using the very slow lsb_release utility
|
# Fall back to using the very slow lsb_release utility
|
||||||
DISTRIB_DESCRIPTION=\$(lsb_release -s -d)
|
DISTRIB_DESCRIPTION=$(lsb_release -s -d)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_echo_red "\$name"
|
|
||||||
printf "\n"
|
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"
|
printf "\n"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user