mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-27 23:41:56 +00:00
Update nginxproxymanager.sh
move "Installing pnpm" to the top of the script
This commit is contained in:
parent
019a80d7a1
commit
2dffbc92c8
@ -59,6 +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
|
||||||
|
msg_info "Installing pnpm"
|
||||||
|
npm install -g pnpm &>/dev/null
|
||||||
|
msg_ok "Installed pnpm"
|
||||||
|
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" |
|
||||||
awk '{print substr($2, 3, length($2)-4) }')
|
awk '{print substr($2, 3, length($2)-4) }')
|
||||||
@ -130,12 +135,6 @@ function update_script() {
|
|||||||
python3 -m pip install --no-cache-dir certbot-dns-cloudflare &>/dev/null
|
python3 -m pip install --no-cache-dir certbot-dns-cloudflare &>/dev/null
|
||||||
msg_ok "Setup Enviroment"
|
msg_ok "Setup Enviroment"
|
||||||
|
|
||||||
if ! command -v pnpm &> /dev/null; then
|
|
||||||
msg_info "Installing pnpm"
|
|
||||||
npm install -g pnpm &>/dev/null
|
|
||||||
msg_ok "Installed pnpm"
|
|
||||||
fi
|
|
||||||
|
|
||||||
msg_info "Building Frontend"
|
msg_info "Building Frontend"
|
||||||
cd ./frontend
|
cd ./frontend
|
||||||
pnpm install &>/dev/null
|
pnpm install &>/dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user