mirror of https://github.com/tteck/Proxmox.git
parent
420492341f
commit
46836f0583
|
@ -74,18 +74,18 @@ function update_script() {
|
||||||
/var/cache/nginx &>/dev/null
|
/var/cache/nginx &>/dev/null
|
||||||
msg_ok "Cleaned Old Files"
|
msg_ok "Cleaned Old Files"
|
||||||
|
|
||||||
msg_info "Downloading NPM v2.9.22"
|
msg_info "Downloading NPM v${RELEASE}"
|
||||||
wget -q https://codeload.github.com/NginxProxyManager/nginx-proxy-manager/tar.gz/v2.9.22 -O - | tar -xz &>/dev/null
|
wget -q https://codeload.github.com/NginxProxyManager/nginx-proxy-manager/tar.gz/v${RELEASE} -O - | tar -xz &>/dev/null
|
||||||
cd nginx-proxy-manager-2.9.22
|
cd nginx-proxy-manager-${RELEASE}
|
||||||
msg_ok "Downloaded NPM v2.9.22"
|
msg_ok "Downloaded NPM v${RELEASE}"
|
||||||
|
|
||||||
msg_info "Setting up Enviroment"
|
msg_info "Setting up Enviroment"
|
||||||
ln -sf /usr/bin/python3 /usr/bin/python
|
ln -sf /usr/bin/python3 /usr/bin/python
|
||||||
ln -sf /usr/bin/certbot /opt/certbot/bin/certbot
|
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+2.9.22+g" backend/package.json
|
sed -i "s+0.0.0+${RELEASE}+g" backend/package.json
|
||||||
sed -i "s+0.0.0+2.9.22+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")
|
||||||
for NGINX_CONF in $NGINX_CONFS; do
|
for NGINX_CONF in $NGINX_CONFS; do
|
||||||
|
|
Loading…
Reference in New Issue