Compare commits

...

2 Commits

Author SHA1 Message Date
CanbiZ
96821f955a Merge branch 'main' of https://github.com/community-scripts/ProxmoxVED 2025-07-02 09:40:07 +02:00
CanbiZ
c3b675ad7f Update zigbee2mqtt.sh 2025-07-02 09:39:57 +02:00

View File

@ -39,6 +39,10 @@ function update_script() {
RELEASE=$(curl -fsSL https://api.github.com/repos/Koenkk/zigbee2mqtt/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
if [[ "$RELEASE" != "$CURRENT" ]]; then
if ! command -v jq &>/dev/null; then
$STD apt-get update
$STD apt-get install -y jq
fi
NODE_VERSION=24 NODE_MODULE="pnpm@$(curl -fsSL https://raw.githubusercontent.com/Koenkk/zigbee2mqtt/master/package.json | jq -r '.packageManager | split("@")[1]')" setup_nodejs
msg_info "Stopping Service"