Update Recyclarr
This commit is contained in:
@@ -28,7 +28,7 @@ verifyConfig () {
|
||||
fi
|
||||
}
|
||||
|
||||
RecyclarrProcess () {
|
||||
RecyclarrProcess () {
|
||||
# Configure Yaml with URL and API Key
|
||||
sed -i "s%arrUrl%$arrUrl%g" "/config/extended/recyclarr.yaml"
|
||||
sed -i "s%arrApi%$arrApiKey%g" "/config/extended/recyclarr.yaml"
|
||||
@@ -40,10 +40,13 @@ RecyclarrProcess () {
|
||||
chmod 777 /config/extended/recyclarr-data
|
||||
fi
|
||||
|
||||
# Run Recyclarr and capture the output
|
||||
/recyclarr/recyclarr sync -c $recyclarrConfig --app-data /config/extended/recyclarr-data 2>&1 | while IFS= read -r line; do
|
||||
echo "$(date "+%F %T") :: $scriptName :: $scriptVersion :: $line" | tee -a "$logfile"
|
||||
done
|
||||
# Capture the output of the Recyclarr command
|
||||
recyclarr_output=$(/recyclarr/recyclarr sync -c $recyclarrConfig --app-data /config/extended/recyclarr-data 2>&1)
|
||||
|
||||
# Log the output line by line
|
||||
while IFS= read -r line; do
|
||||
log "$line"
|
||||
done <<< "$recyclarr_output"
|
||||
|
||||
log "Complete"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user