From 5520c29a01e94c4f0a5cd3103f406ef6bf9cc052 Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 1 Feb 2022 19:24:51 -0500 Subject: [PATCH] Update npm_setup.sh --- setup/npm_setup.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/setup/npm_setup.sh b/setup/npm_setup.sh index 35c652c5..c471c242 100644 --- a/setup/npm_setup.sh +++ b/setup/npm_setup.sh @@ -23,6 +23,13 @@ function msg() { echo -e "$TEXT" } +while [ "$(hostname -I)" = "" ]; do + echo -e "No network: $(date)" + sleep 1 +done + +echo -e "Network connected: ($(hostname -I)) \e[0m" + echo -e "${CHECKMARK} \e[1;92m Setting up Container OS... \e[0m" sed -i "/$LANG/ s/\(^# \)//" /etc/locale.gen locale-gen >/dev/null @@ -33,8 +40,7 @@ apt-get -qqy upgrade &>/dev/null echo -e "${CHECKMARK} \e[1;92m Installing Dependencies... \e[0m" echo "fs.file-max = 65535" > /etc/sysctl.conf -apt update &>/dev/null -sleep 3 +apt-get update &>/dev/null apt-get -qqy install \ sudo \ curl \