From 9cc5ff0d5fceeb3ad3ec7a2cf9af80d00e93ee1b Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 2 Feb 2022 07:06:04 -0500 Subject: [PATCH] Update adguard_setup.sh --- setup/adguard_setup.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/setup/adguard_setup.sh b/setup/adguard_setup.sh index 1dad9b95..d75230ef 100644 --- a/setup/adguard_setup.sh +++ b/setup/adguard_setup.sh @@ -27,11 +27,11 @@ function msg() { echo -e "$TEXT" } -msg "Setting up Container OS..." +echo -e "${CHECKMARK} \e[1;92m Setting up Container OS... \e[0m" sed -i "/$LANG/ s/\(^# \)//" /etc/locale.gen locale-gen >/dev/null while [ "$(hostname -I)" = "" ]; do - 1>&2 echo -e "${CROSS} \e[1;31m No Network: \e[0m $(date)" + 1>&2 echo -e "${CROSS} \e[1;31m No Network \e[0m $(date)" sleep $RETRY_EVERY ((NUM--)) if [ $NUM -eq 0 ] @@ -40,22 +40,22 @@ while [ "$(hostname -I)" = "" ]; do exit 1 fi done - echo -e "${CHECKMARK} \e[1;92m Network Connected: \e[0m $(hostname -I)" + echo -e "${CHECKMARK} \e[1;92m Network Connected \e[0m $(hostname -I)" -msg "Updating Container OS..." +echo -e "${CHECKMARK} \e[1;92m Updating Container OS... \e[0m" apt update &>/dev/null apt-get -qqy upgrade &>/dev/null -msg "Installing Prerequisites..." +echo -e "${CHECKMARK} \e[1;92m Installing Dependencies... \e[0m" apt-get update &>/dev/null apt-get -y install \ curl \ sudo &>/dev/null -msg "Installing AdGuard Home.." +echo -e "${CHECKMARK} \e[1;92m Installing AdGuard Home... \e[0m" curl -sSL https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh &>/dev/null -msg "Customizing LXC..." +echo -e "${CHECKMARK} \e[1;92m Customizing LXC... \e[0m" rm /etc/motd rm /etc/update-motd.d/10-uname touch ~/.hushlogin @@ -69,5 +69,5 @@ EOF systemctl daemon-reload systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//') -msg "Cleanup..." +echo -e "${CHECKMARK} \e[1;92m Cleanup... \e[0m" rm -rf /adguard_setup.sh /var/{cache,log}/* /var/lib/apt/lists/*