add pnpm build

This commit is contained in:
CanbiZ 2025-01-04 23:17:11 +01:00 committed by GitHub
parent d883b6d398
commit 7465e20c1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,6 +52,7 @@ function update_script() {
rm -rf /opt/zigbee2mqtt/data rm -rf /opt/zigbee2mqtt/data
mv /opt/z2m_backup/data /opt/zigbee2mqtt mv /opt/z2m_backup/data /opt/zigbee2mqtt
cd /opt/zigbee2mqtt cd /opt/zigbee2mqtt
pnpm build &>/dev/null
pnpm install --frozen-lockfile &>/dev/null pnpm install --frozen-lockfile &>/dev/null
msg_info "Starting Service" msg_info "Starting Service"
systemctl start zigbee2mqtt systemctl start zigbee2mqtt