Fix Nginx Proxy Manager LXC

This commit is contained in:
Maciej Zonski 2024-05-04 20:11:52 +02:00
parent 4a1ccb5d3d
commit 5145ffe344
3 changed files with 20 additions and 15 deletions

View file

@ -10,6 +10,13 @@
- All LXC instances created using this repository come pre-installed with Midnight Commander, which is a command-line tool (`mc`) that offers a user-friendly file and directory management interface for the terminal environment. - All LXC instances created using this repository come pre-installed with Midnight Commander, which is a command-line tool (`mc`) that offers a user-friendly file and directory management interface for the terminal environment.
- 🚨 **The scripts in the repository will no longer provide support for Proxmox VE 7 starting from July 2024 (scripts will not execute on PVE7). Subsequent <a href='https://forum.proxmox.com/threads/proxmox-ve-support-lifecycle.35755/' target='_blank' rel='noopener noreferrer'>Proxmox VE - Support Lifecycle</a>** - 🚨 **The scripts in the repository will no longer provide support for Proxmox VE 7 starting from July 2024 (scripts will not execute on PVE7). Subsequent <a href='https://forum.proxmox.com/threads/proxmox-ve-support-lifecycle.35755/' target='_blank' rel='noopener noreferrer'>Proxmox VE - Support Lifecycle</a>**
## 2024-05-04
### Changed
- **Nginx Proxy Manager LXC**
- Use `yarn` as default node package manager
## 2024-05-02 ## 2024-05-02
### Changed ### Changed

View file

@ -59,11 +59,11 @@ function update_script() {
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit exit
fi fi
if ! command -v pnpm &> /dev/null; then if ! command -v yarn &> /dev/null; then
msg_info "Installing pnpm" msg_info "Installing yarn"
export NODE_OPTIONS=--openssl-legacy-provider export NODE_OPTIONS=--openssl-legacy-provider
npm install -g pnpm@8.15 &>/dev/null npm install -g yarn@1.22.19 &>/dev/null
msg_ok "Installed pnpm" msg_ok "Installed yarn"
fi fi
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" |
@ -138,9 +138,8 @@ function update_script() {
msg_info "Building Frontend" msg_info "Building Frontend"
cd ./frontend cd ./frontend
pnpm install &>/dev/null yarn ci &>/dev/null
pnpm upgrade &>/dev/null yarn run build &>/dev/null
pnpm run build &>/dev/null
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"
@ -163,7 +162,7 @@ function update_script() {
EOF EOF
fi fi
cd /app cd /app
pnpm install &>/dev/null yarn ci &>/dev/null
msg_ok "Initialized Backend" msg_ok "Initialized Backend"
msg_info "Starting Services" msg_info "Starting Services"

View file

@ -59,9 +59,9 @@ $STD nvm install 16.20.2
ln -sf /root/.nvm/versions/node/v16.20.2/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 pnpm" msg_info "Installing yarn"
$STD npm install -g pnpm@8.15 $STD npm install -g yarn@1.22.19
msg_ok "Installed pnpm" 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 |
grep "tag_name" | grep "tag_name" |
@ -140,9 +140,8 @@ msg_ok "Set up Enviroment"
msg_info "Building Frontend" msg_info "Building Frontend"
cd ./frontend cd ./frontend
$STD pnpm install $STD yarn ci
$STD pnpm upgrade $STD yarn run 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"
@ -165,7 +164,7 @@ if [ ! -f /app/config/production.json ]; then
EOF EOF
fi fi
cd /app cd /app
$STD pnpm install $STD yarn ci
msg_ok "Initialized Backend" msg_ok "Initialized Backend"
msg_info "Creating Service" msg_info "Creating Service"