diff --git a/ct/tdarr.sh b/ct/tdarr.sh index fc983befb..d8aaedaf0 100644 --- a/ct/tdarr.sh +++ b/ct/tdarr.sh @@ -33,12 +33,16 @@ function update_script() { $STD apt upgrade -y rm -rf /opt/tdarr/Tdarr_Updater cd /opt/tdarr - RELEASE=$(curl -fsSL https://f000.backblazeb2.com/file/tdarrs/versions.json | grep -oP '(?<="Tdarr_Updater": ")[^"]+' | grep linux_x64 | head -n 1) - curl -fsSL "$RELEASE" -o Tdarr_Updater.zip + RELEASE=$(curl_with_retry "https://f000.backblazeb2.com/file/tdarrs/versions.json" "-" | grep -oP '(?<="Tdarr_Updater": ")[^"]+' | grep linux_x64 | head -n 1) + curl_with_retry "$RELEASE" "Tdarr_Updater.zip" $STD unzip Tdarr_Updater.zip chmod +x Tdarr_Updater $STD ./Tdarr_Updater rm -rf /opt/tdarr/Tdarr_Updater.zip + [[ -f /opt/tdarr/Tdarr_Server/Tdarr_Server ]] || { + msg_error "Tdarr_Updater failed — tdarr.io may be blocked by local DNS" + exit 250 + } msg_ok "Updated Tdarr" msg_ok "Updated successfully!" exit