mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-02 11:03:56 +01:00
commit
613d341392
26
npm_setup.sh
26
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"
|
echo -e "${CHECKMARK} \e[1;92m Setting up Container OS... \e[0m"
|
||||||
|
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
|
echo -e "${CHECKMARK} \e[1;92m Updating Container OS... \e[0m"
|
||||||
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"
|
||||||
@ -66,9 +70,9 @@ echo -e "${CHECKMARK} \e[1;92m Installing Yarn... \e[0m"
|
|||||||
npm install --global yarn &>/dev/null
|
npm install --global yarn &>/dev/null
|
||||||
|
|
||||||
# Download nginx-proxy-manager source
|
# Download nginx-proxy-manager source
|
||||||
echo -e "${CHECKMARK} \e[1;92m Downloading NPM v2.9.14... \e[0m"
|
echo -e "${CHECKMARK} \e[1;92m Downloading NPM v2.9.15... \e[0m"
|
||||||
wget https://codeload.github.com/NginxProxyManager/nginx-proxy-manager/tar.gz/v2.9.14 -O - | tar -xz &>/dev/null
|
wget https://codeload.github.com/NginxProxyManager/nginx-proxy-manager/tar.gz/v2.9.15 -O - | tar -xz &>/dev/null
|
||||||
cd ./nginx-proxy-manager-2.9.14
|
cd ./nginx-proxy-manager-2.9.15
|
||||||
|
|
||||||
# Crate required symbolic links
|
# Crate required symbolic links
|
||||||
echo -e "${CHECKMARK} \e[1;92m Setting up Enviroment... \e[0m"
|
echo -e "${CHECKMARK} \e[1;92m Setting up Enviroment... \e[0m"
|
||||||
@ -78,8 +82,8 @@ ln -sf /usr/local/openresty/nginx/sbin/nginx /usr/sbin/nginx
|
|||||||
ln -sf /usr/local/openresty/nginx/ /etc/nginx
|
ln -sf /usr/local/openresty/nginx/ /etc/nginx
|
||||||
|
|
||||||
# Update NPM version in package.json files
|
# Update NPM version in package.json files
|
||||||
sed -i "s+0.0.0+#v2.9.14+g" backend/package.json
|
sed -i "s+0.0.0+#v2.9.15+g" backend/package.json
|
||||||
sed -i "s+0.0.0+#v2.9.14+g" frontend/package.json
|
sed -i "s+0.0.0+#v2.9.15+g" frontend/package.json
|
||||||
|
|
||||||
# Fix nginx config files for use with openresty defaults
|
# Fix nginx config files for use with openresty defaults
|
||||||
sed -i 's+^daemon+#daemon+g' docker/rootfs/etc/nginx/nginx.conf
|
sed -i 's+^daemon+#daemon+g' docker/rootfs/etc/nginx/nginx.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user