From c90a7a6db6f4560056d17dc0666ad1e79ada9d77 Mon Sep 17 00:00:00 2001 From: S Date: Sun, 1 Mar 2026 08:59:04 -0500 Subject: [PATCH] feat: add unzip installation check for backup/restore scripts on Unraid --- setup/unraid.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/setup/unraid.sh b/setup/unraid.sh index d6397fa..741b327 100755 --- a/setup/unraid.sh +++ b/setup/unraid.sh @@ -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 # --------------------------------------------------------------------------