From 63e0a88af639669d508a8250fcdefc50b3e68ff3 Mon Sep 17 00:00:00 2001 From: billsbdb3 <64713235+billsbdb3@users.noreply.github.com> Date: Wed, 3 Jul 2024 11:55:14 -0400 Subject: [PATCH] Update Recyclarr --- universal/services/Recyclarr | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/universal/services/Recyclarr b/universal/services/Recyclarr index 71d4ab2..66dd4ca 100644 --- a/universal/services/Recyclarr +++ b/universal/services/Recyclarr @@ -8,6 +8,10 @@ source /config/extended.conf source /config/extended/functions #### Create Log File logfileSetup + +# Redirect all output to the log file +exec &> >(tee -a "/config/logs/$logFileName") + #### Check Arr App getArrAppInfo verifyApiAccess @@ -37,20 +41,19 @@ RecyclarrProcess () { fi /recyclarr/recyclarr sync -c $recyclarrConfig --app-data /config/extended/recyclarr-data - log "Complete" } # Loop Script for (( ; ; )); do - let i++ - logfileSetup - verifyConfig - getArrAppInfo - verifyApiAccess - RecyclarrProcess - log "Script sleeping for $recyclarrScriptInterval..." - sleep $recyclarrScriptInterval + let i++ + logfileSetup + verifyConfig + getArrAppInfo + verifyApiAccess + RecyclarrProcess + log "Script sleeping for $recyclarrScriptInterval..." + sleep $recyclarrScriptInterval done exit