Update npm_setup.sh

This commit is contained in:
tteckster 2022-01-18 07:16:34 -05:00 committed by GitHub
parent 42d7eb2b7f
commit 799397bbd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -70,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"
@ -82,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