Update nginxproxymanager-install.sh

- nvm v0.39.7
- node.js v16.20.2
- Transition to using pnpm instead of yarn.
pull/2393/head
tteckster 10 months ago committed by GitHub
parent a45c65cd14
commit edf3803362
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -54,15 +54,15 @@ $STD apt-get -y install openresty
msg_ok "Installed Openresty" msg_ok "Installed Openresty"
msg_info "Installing Node.js" msg_info "Installing Node.js"
$STD bash <(curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh) $STD bash <(curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh)
source ~/.bashrc source ~/.bashrc
$STD nvm install 16.20.1 $STD nvm install 16.20.2
ln -sf /root/.nvm/versions/node/v16.20.1/bin/node /usr/bin/node ln -sf /root/.nvm/versions/node/v16.20.2/bin/node /usr/bin/node
msg_ok "Installed Node.js" msg_ok "Installed Node.js"
msg_info "Installing Yarn" msg_info "Installing pnpm"
$STD npm install -g yarn $STD npm install -g pnpm
msg_ok "Installed Yarn" msg_ok "Installed pnpm"
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 |
grep "tag_name" | grep "tag_name" |
@ -129,9 +129,9 @@ msg_ok "Set up Enviroment"
msg_info "Building Frontend" msg_info "Building Frontend"
cd ./frontend cd ./frontend
$STD yarn install $STD pnpm install
$STD yarn upgrade $STD pnpm upgrade
$STD yarn build $STD pnpm run build
cp -r dist/* /app/frontend cp -r dist/* /app/frontend
cp -r app-images/* /app/frontend/images cp -r app-images/* /app/frontend/images
msg_ok "Built Frontend" msg_ok "Built Frontend"
@ -154,8 +154,7 @@ if [ ! -f /app/config/production.json ]; then
EOF EOF
fi fi
cd /app cd /app
export NODE_ENV=development $STD pnpm install
$STD yarn install --network-timeout=30000
msg_ok "Initialized Backend" msg_ok "Initialized Backend"
msg_info "Creating Service" msg_info "Creating Service"
@ -189,7 +188,7 @@ systemctl enable -q --now npm
msg_ok "Started Services" msg_ok "Started Services"
msg_info "Cleaning up" msg_info "Cleaning up"
rm -rf ../nginx-proxy-manager-* s6-overlay-noarch.tar.xz s6-overlay-x86_64.tar.xz rm -rf ../nginx-proxy-manager-*
systemctl restart openresty systemctl restart openresty
$STD apt-get autoremove $STD apt-get autoremove
$STD apt-get autoclean $STD apt-get autoclean

Loading…
Cancel
Save

Powered by BW's shoe-string budget.