feat: add unzip installation check for backup/restore scripts on Unraid

This commit is contained in:
S
2026-03-01 08:59:04 -05:00
parent ba5aa6816b
commit c90a7a6db6

View File

@@ -86,6 +86,22 @@ else
fi
fi
# --------------------------------------------------------------------------
# unzip (needed by backup/restore scripts)
# --------------------------------------------------------------------------
if ssh_exec UNRAID "unzip -v" &>/dev/null; then
log_success "unzip found on Unraid"
else
log_info "Installing unzip static binary on Unraid..."
ssh_exec UNRAID "curl -SL https://busybox.net/downloads/binaries/1.35.0-x86_64-linux-musl/busybox -o /tmp/busybox_unzip && chmod +x /tmp/busybox_unzip && cp /tmp/busybox_unzip /usr/local/bin/unzip && rm /tmp/busybox_unzip"
manifest_record "unraid" "static_bin" "/usr/local/bin/unzip"
if ssh_exec UNRAID "unzip -v" &>/dev/null; then
log_success "unzip installed on Unraid"
else
log_warn "Failed to install unzip on Unraid — backup/restore may not work"
fi
fi
# --------------------------------------------------------------------------
# Minimum version checks for remote tools
# --------------------------------------------------------------------------