mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-26 16:43:17 +01:00
Update npm_setup.sh
This commit is contained in:
parent
44ae530f98
commit
42d7eb2b7f
18
npm_setup.sh
18
npm_setup.sh
@ -23,13 +23,17 @@ function msg() {
|
|||||||
echo -e "$TEXT"
|
echo -e "$TEXT"
|
||||||
}
|
}
|
||||||
|
|
||||||
LASTCMD=""
|
# Prepare container OS
|
||||||
WGETOPT="-t 1 -T 15 -q"
|
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
|
# Update container OS
|
||||||
apt-get remove --purge -y build-essential python3-dev git -qq &>/dev/null
|
msg "Updating container OS..."
|
||||||
apt-get autoremove -y -qq &>/dev/null
|
apt update &>/dev/null
|
||||||
apt-get clean
|
apt-get -qqy upgrade &>/dev/null
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
echo -e "${CHECKMARK} \e[1;92m Installing Dependencies... \e[0m"
|
echo -e "${CHECKMARK} \e[1;92m Installing Dependencies... \e[0m"
|
||||||
@ -204,4 +208,4 @@ systemctl start openresty
|
|||||||
systemctl start npm
|
systemctl start npm
|
||||||
|
|
||||||
echo -e "${CHECKMARK} \e[1;92m Cleanup... \e[0m"
|
echo -e "${CHECKMARK} \e[1;92m Cleanup... \e[0m"
|
||||||
rm -rf /npm_setup.sh /var/{cache,log}/* /var/lib/apt/lists/*
|
rm -rf /npm_setup.sh /var/{cache,log}/* /var/lib/apt/lists/*
|
||||||
|
Loading…
Reference in New Issue
Block a user