Update Recyclarr

This commit is contained in:
billsbdb3
2024-07-03 14:43:40 -04:00
committed by GitHub
parent 62d4b3f518
commit aa6359afea

View File

@@ -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"
}