#!/usr/bin/env bash scriptVersion="1.0.001" if [ -z "$arrUrl" ] || [ -z "$arrApiKey" ]; then arrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" if [ "$arrUrlBase" = "null" ]; then arrUrlBase="" else arrUrlBase="/$(echo "$arrUrlBase" | sed "s/\///g")" fi arrApiKey="$(cat /config/config.xml | xq | jq -r .Config.ApiKey)" arrUrl="http://127.0.0.1:7878${arrUrlBase}" fi # recyclarrURL="$(curl -s "https://github.com/recyclarr/recyclarr/releases" | grep "recyclarr-linux-x64.zip" | head -n 1 | grep -io '/dev/null chmod u+rx /recyclarr/recyclarr fi # update radarr /recyclarr/recyclarr radarr -c /recyclarr.yaml --app-data /recylarr exit