|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
scriptVersion="1.0.002"
|
|
|
|
|
scriptVersion="1.0.1"
|
|
|
|
|
|
|
|
|
|
if [ -z "$arrUrl" ] || [ -z "$arrApiKey" ]; then
|
|
|
|
|
arrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
|
|
|
|
@ -23,7 +23,10 @@ if [ -f "/config/logs/DailySeriesEpisodeTrimmer.txt" ]; then
|
|
|
|
|
find /config/logs -type f -name "DailySeriesEpisodeTrimmer.txt" -size +1024k -delete
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
touch "/config/logs/DailySeriesEpisodeTrimmer.txt"
|
|
|
|
|
if [ ! -f "/config/logs/DailySeriesEpisodeTrimmer.txt" ]; then
|
|
|
|
|
touch "/config/logs/DailySeriesEpisodeTrimmer.txt"
|
|
|
|
|
chmod 666 "/config/logs/DailySeriesEpisodeTrimmer.txt"
|
|
|
|
|
fi
|
|
|
|
|
exec &> >(tee -a "/config/logs/DailySeriesEpisodeTrimmer.txt")
|
|
|
|
|
|
|
|
|
|
if [ "$sonarr_eventtype" == "Test" ]; then
|
|
|
|
|