Update QueueCleaner.bash

This commit is contained in:
RandomNinjaAtk 2023-03-18 17:32:51 -04:00 committed by GitHub
parent 34a1016ecf
commit 3eb64d675c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
#!/usr/bin/with-contenv bash #!/usr/bin/with-contenv bash
scriptVersion="1.0.6" scriptVersion="1.0.7"
######## Settings ######## Settings
scriptInterval="15m" scriptInterval="15m"
@ -111,6 +111,7 @@ arrName="$(cat /config/config.xml | xq | jq -r .Config.InstanceName)"
if [ "$arrName" == "Sonarr" ] || [ "$arrName" == "Radarr" ] || [ "$arrName" == "Lidarr" ]; then if [ "$arrName" == "Sonarr" ] || [ "$arrName" == "Radarr" ] || [ "$arrName" == "Lidarr" ]; then
for (( ; ; )); do for (( ; ; )); do
let i++ let i++
log "Starting..."
QueueCleanerProcess QueueCleanerProcess
log "Sleeping $scriptInterval..." log "Sleeping $scriptInterval..."
sleep $scriptInterval sleep $scriptInterval