File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ source /config/extended.conf
88source /config/extended/functions
99# ### Create Log File
1010logfileSetup
11+
12+ # Redirect all output to the log file
13+ exec & > >( tee -a " /config/logs/$logFileName " )
14+
1115# ### Check Arr App
1216getArrAppInfo
1317verifyApiAccess
@@ -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
4548for (( ; ; )) ; 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
5457done
5558
5659exit
You can’t perform that action at this time.
0 commit comments