Update nginxproxymanager-install.sh

Code refactoring
This commit is contained in:
tteckster 2023-06-30 06:04:35 -04:00 committed by GitHub
parent d5ac9ed5b7
commit 34e22223f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 6 deletions

View File

@ -52,15 +52,17 @@ $STD apt-get update
$STD apt-get -y install openresty $STD apt-get -y install openresty
msg_ok "Installed Openresty" msg_ok "Installed Openresty"
msg_info "Installing Node.js" msg_info "Installing Node.js (Patience)"
$STD bash <(curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh) $STD apt-get install -y npm
. ~/.bashrc $STD npm cache clean -f
$STD nvm install 16.20.1 $STD npm install -g n
ln -sf /root/.nvm/versions/node/v16.20.1/bin/node /usr/bin/node $STD n 16.20.1
ln -sf /usr/local/bin/node /usr/bin/node
msg_ok "Installed Node.js" msg_ok "Installed Node.js"
msg_info "Installing Yarn" msg_info "Installing Yarn"
$STD npm install --global yarn $STD npm install -g yarn
ln -sf /usr/local/bin/yarn /usr/bin/yarn
msg_ok "Installed Yarn" msg_ok "Installed Yarn"
RELEASE=$(curl -s https://api.github.com/repos/NginxProxyManager/nginx-proxy-manager/releases/latest | RELEASE=$(curl -s https://api.github.com/repos/NginxProxyManager/nginx-proxy-manager/releases/latest |