mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-02-01 14:51:50 +00:00
[jellyseerr] Update nodejs if not up-to-date (#1563)
* [jellyseerr] Update nodejs if not up-to-date * simplify if
This commit is contained in:
parent
d1f5556ce3
commit
75590a8ff8
@ -34,6 +34,22 @@ function update_script() {
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$(node -v | cut -c2-3)" -ne 22 ]; then
|
||||||
|
msg_info "Updating Node.js Repository"
|
||||||
|
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" >/etc/apt/sources.list.d/nodesource.list
|
||||||
|
msg_ok "Updating Node.js Repository"
|
||||||
|
|
||||||
|
msg_info "Updating Packages"
|
||||||
|
apt-get update &>/dev/null
|
||||||
|
apt-get -y upgrade &>/dev/null
|
||||||
|
msg_ok "Updating Packages"
|
||||||
|
|
||||||
|
msg_info "Cleaning up"
|
||||||
|
apt-get -y autoremove
|
||||||
|
apt-get -y autoclean
|
||||||
|
msg_ok "Cleaning up"
|
||||||
|
fi
|
||||||
|
|
||||||
if ! command -v pnpm &> /dev/null; then
|
if ! command -v pnpm &> /dev/null; then
|
||||||
msg_error "pnpm not found. Installing..."
|
msg_error "pnpm not found. Installing..."
|
||||||
npm install -g pnpm &>/dev/null
|
npm install -g pnpm &>/dev/null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user