Update nginx-proxy-manager-install.sh

This commit is contained in:
tteckster 2022-02-28 16:49:04 -05:00 committed by GitHub
parent a823c84006
commit 7cf689b19a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 5 deletions

View File

@ -102,9 +102,13 @@ echo -en "${GN} Installing Yarn... "
npm install --global yarn &>/dev/null npm install --global yarn &>/dev/null
echo -e "${CM}${CL} \r" echo -e "${CM}${CL} \r"
echo -en "${GN} Downloading NPM v2.9.16... " RELEASE=$(curl -s https://api.github.com/repos/NginxProxyManager/nginx-proxy-manager/releases/latest \
wget -q https://codeload.github.com/NginxProxyManager/nginx-proxy-manager/tar.gz/v2.9.16 -O - | tar -xz &>/dev/null | grep "tag_name" \
cd ./nginx-proxy-manager-2.9.16 | awk '{print substr($2, 3, length($2)-4) }') \
echo -en "${GN} Downloading NPM v${RELEASE}... "
wget -q https://codeload.github.com/NginxProxyManager/nginx-proxy-manager/tar.gz/v${RELEASE} -O - | tar -xz &>/dev/null
cd ./nginx-proxy-manager-${RELEASE}
echo -e "${CM}${CL} \r" echo -e "${CM}${CL} \r"
echo -en "${GN} Setting up Enviroment... " echo -en "${GN} Setting up Enviroment... "
@ -113,8 +117,8 @@ ln -sf /usr/bin/certbot /opt/certbot/bin/certbot
ln -sf /usr/local/openresty/nginx/sbin/nginx /usr/sbin/nginx 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
sed -i "s+0.0.0+#v2.9.16+g" backend/package.json sed -i "s+0.0.0+${RELEASE}+g" backend/package.json
sed -i "s+0.0.0+#v2.9.16+g" frontend/package.json sed -i "s+0.0.0+${RELEASE}+g" frontend/package.json
sed -i 's+^daemon+#daemon+g' docker/rootfs/etc/nginx/nginx.conf sed -i 's+^daemon+#daemon+g' docker/rootfs/etc/nginx/nginx.conf
NGINX_CONFS=$(find "$(pwd)" -type f -name "*.conf") NGINX_CONFS=$(find "$(pwd)" -type f -name "*.conf")