From 42d7eb2b7f403c4d47b2634c346715835f15d594 Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 18 Jan 2022 07:12:45 -0500 Subject: [PATCH] Update npm_setup.sh --- npm_setup.sh | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/npm_setup.sh b/npm_setup.sh index e6ba9b97..11066355 100644 --- a/npm_setup.sh +++ b/npm_setup.sh @@ -23,13 +23,17 @@ function msg() { echo -e "$TEXT" } -LASTCMD="" -WGETOPT="-t 1 -T 15 -q" +# Prepare container OS +msg "Setting up container OS..." +sed -i "/$LANG/ s/\(^# \)//" /etc/locale.gen +locale-gen >/dev/null +apt-get -y purge openssh-{client,server} >/dev/null +apt-get autoremove >/dev/null - # Cleanup - apt-get remove --purge -y build-essential python3-dev git -qq &>/dev/null - apt-get autoremove -y -qq &>/dev/null - apt-get clean +# Update container OS +msg "Updating container OS..." +apt update &>/dev/null +apt-get -qqy upgrade &>/dev/null # Install dependencies echo -e "${CHECKMARK} \e[1;92m Installing Dependencies... \e[0m" @@ -204,4 +208,4 @@ systemctl start openresty systemctl start npm echo -e "${CHECKMARK} \e[1;92m Cleanup... \e[0m" -rm -rf /npm_setup.sh /var/{cache,log}/* /var/lib/apt/lists/* \ No newline at end of file +rm -rf /npm_setup.sh /var/{cache,log}/* /var/lib/apt/lists/*