Add dependency check for zstd before backup

Ensure zstd dependency is installed before backup.
This commit is contained in:
CanbiZ (MickLesk)
2026-03-09 18:36:28 +01:00
committed by GitHub
parent 8113c7da22
commit 0b99873194

View File

@@ -35,6 +35,7 @@ function update_script() {
msg_ok "Stopped Service"
msg_info "Creating Backup"
ensure_dependencies zstd
mkdir -p /opt/{backups,z2m_backup}
BACKUP_VERSION="$(<"$HOME/.zigbee2mqtt")"
BACKUP_FILE="/opt/backups/${APP}_backup_${BACKUP_VERSION}.tar.zst"