Improve Tdarr installer error handling

Refine post-update validation and failure behavior in tdarr-install.sh: remove a redundant status message, simplify the updater check to only require the Tdarr_Server binary, and replace the previous fatal path with msg_error plus an explicit exit 250. This makes failures (for example when tdarr.io is blocked by local DNS) clearer and avoids false negatives from the Tdarr_Node existence check.
This commit is contained in:
CanbiZ (MickLesk)
2026-03-18 18:57:49 +01:00
parent 2d87429006
commit d143cdee66

View File

@@ -24,11 +24,12 @@ RELEASE=$(curl_with_retry "https://f000.backblazeb2.com/file/tdarrs/versions.jso
curl_with_retry "$RELEASE" "Tdarr_Updater.zip"
$STD unzip Tdarr_Updater.zip
chmod +x Tdarr_Updater
msg_info "Running Tdarr_Updater (downloading server/node binaries from tdarr.io)"
$STD ./Tdarr_Updater
rm -rf /opt/tdarr/Tdarr_Updater.zip
[[ -f /opt/tdarr/Tdarr_Server/Tdarr_Server && -f /opt/tdarr/Tdarr_Node/Tdarr_Node ]] \
|| fatal "Tdarr_Updater did not download server binaries — tdarr.io may be blocked by local DNS"
[[ -f /opt/tdarr/Tdarr_Server/Tdarr_Server ]] || {
msg_error "Tdarr_Updater failed — tdarr.io may be blocked by local DNS"
exit 250
}
msg_ok "Installed Tdarr"
setup_hwaccel