Update nginxproxymanager-install.sh
lock script to version 2.9.22
This commit is contained in:
parent
1f17d282a6
commit
d8ed7b5060
1 changed files with 7 additions and 8 deletions
|
@ -40,7 +40,7 @@ $STD python3 -m venv /opt/certbot/
|
||||||
if [ "$(getconf LONG_BIT)" = "32" ]; then
|
if [ "$(getconf LONG_BIT)" = "32" ]; then
|
||||||
$STD python3 -m pip install --no-cache-dir -U cryptography==3.3.2
|
$STD python3 -m pip install --no-cache-dir -U cryptography==3.3.2
|
||||||
fi
|
fi
|
||||||
$STD python3 -m pip install --no-cache-dir cffi certbot certbot-dns-cloudflare
|
$STD python3 -m pip install --no-cache-dir cffi certbot
|
||||||
msg_ok "Installed Python"
|
msg_ok "Installed Python"
|
||||||
|
|
||||||
msg_info "Installing Openresty"
|
msg_info "Installing Openresty"
|
||||||
|
@ -66,10 +66,10 @@ RELEASE=$(curl -s https://api.github.com/repos/NginxProxyManager/nginx-proxy-man
|
||||||
grep "tag_name" |
|
grep "tag_name" |
|
||||||
awk '{print substr($2, 3, length($2)-4) }')
|
awk '{print substr($2, 3, length($2)-4) }')
|
||||||
|
|
||||||
msg_info "Downloading Nginx Proxy Manager v${RELEASE}"
|
msg_info "Downloading Nginx Proxy Manager v2.9.22"
|
||||||
wget -q https://codeload.github.com/NginxProxyManager/nginx-proxy-manager/tar.gz/v${RELEASE} -O - | tar -xz
|
wget -q https://codeload.github.com/NginxProxyManager/nginx-proxy-manager/tar.gz/v2.9.22 -O - | tar -xz
|
||||||
cd ./nginx-proxy-manager-${RELEASE}
|
cd ./nginx-proxy-manager-2.9.22
|
||||||
msg_ok "Downloaded Nginx Proxy Manager v${RELEASE}"
|
msg_ok "Downloaded Nginx Proxy Manager v2.9.22"
|
||||||
|
|
||||||
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
|
||||||
|
@ -77,8 +77,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+${RELEASE}+g" backend/package.json
|
sed -i "s+0.0.0+2.9.22+g" backend/package.json
|
||||||
sed -i "s+0.0.0+${RELEASE}+g" frontend/package.json
|
sed -i "s+0.0.0+2.9.22+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")
|
||||||
|
@ -181,7 +181,6 @@ motd_ssh
|
||||||
root
|
root
|
||||||
|
|
||||||
msg_info "Starting Services"
|
msg_info "Starting Services"
|
||||||
sed -i -e 's/^pid/#pid/' -e 's/^user/#user/' /usr/local/openresty/nginx/conf/nginx.conf
|
|
||||||
$STD systemctl enable --now openresty
|
$STD systemctl enable --now openresty
|
||||||
$STD systemctl enable --now npm
|
$STD systemctl enable --now npm
|
||||||
msg_ok "Started Services"
|
msg_ok "Started Services"
|
||||||
|
|
Loading…
Reference in a new issue