Skip to content

Commit 63e0a88

Browse files
authored
Update Recyclarr
1 parent d5b547e commit 63e0a88

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

universal/services/Recyclarr

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ source /config/extended.conf
88
source /config/extended/functions
99
#### Create Log File
1010
logfileSetup
11+
12+
# Redirect all output to the log file
13+
exec &> >(tee -a "/config/logs/$logFileName")
14+
1115
#### Check Arr App
1216
getArrAppInfo
1317
verifyApiAccess
@@ -37,20 +41,19 @@ RecyclarrProcess () {
3741
fi
3842
/recyclarr/recyclarr sync -c $recyclarrConfig --app-data /config/extended/recyclarr-data
3943

40-
4144
log "Complete"
4245
}
4346

4447
# Loop Script
4548
for (( ; ; )); do
46-
let i++
47-
logfileSetup
48-
verifyConfig
49-
getArrAppInfo
50-
verifyApiAccess
51-
RecyclarrProcess
52-
log "Script sleeping for $recyclarrScriptInterval..."
53-
sleep $recyclarrScriptInterval
49+
let i++
50+
logfileSetup
51+
verifyConfig
52+
getArrAppInfo
53+
verifyApiAccess
54+
RecyclarrProcess
55+
log "Script sleeping for $recyclarrScriptInterval..."
56+
sleep $recyclarrScriptInterval
5457
done
5558

5659
exit

0 commit comments

Comments
 (0)