1
0
mirror of https://github.com/tteck/Proxmox.git synced 2024-12-27 10:57:02 +02:00

Update npm_setup.sh

This commit is contained in:
tteckster 2022-02-01 20:03:07 -05:00 committed by GitHub
parent 16c09336d2
commit 9b88ec6462
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,17 +23,15 @@ function msg() {
local TEXT="$1"
echo -e "$TEXT"
}
echo -e "${CHECKMARK} \e[1;92m Setting up Container OS... \e[0m"
sed -i "/$LANG/ s/\(^# \)//" /etc/locale.gen
locale-gen >/dev/null
sleep 3
while [ "$(hostname -I)" = "" ]; do
echo -e "${CROSS} \e[1;31m No network: \e[0m $(date)"
sleep 3
done
echo -e "${CHECKMARK} \e[1;92m Network connected: \e[0m ($(hostname -I))"
echo -e "${CHECKMARK} \e[1;92m Setting up Container OS... \e[0m"
sed -i "/$LANG/ s/\(^# \)//" /etc/locale.gen
locale-gen >/dev/null
echo -e "${CHECKMARK} \e[1;92m Network connected: \e[0m $(hostname -I)"
echo -e "${CHECKMARK} \e[1;92m Updating Container OS... \e[0m"
apt update &>/dev/null
apt-get -qqy upgrade &>/dev/null