v1.2 - Make recyclarr data persistent

This commit is contained in:
RandomNinjaAtk 2023-07-10 10:47:13 +00:00 committed by GitHub
parent 154072b85d
commit f9e7b300d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
#!/usr/bin/env bash
scriptVersion="1.1"
scriptVersion="1.2"
getArrAppInfo () {
# Get Arr App information
@ -66,7 +66,11 @@ RecyclarrProcess () {
# update radarr
log "Updating Sonarr via Recyclarr"
/recyclarr/recyclarr sync $recylcarrApp -c /config/extended/recyclarr.yaml --app-data /recyclarr-data
if [ ! -d /config/extended/recyclarr-data ]; then
mkdir -p /config/extended/recyclarr-data
chmod 777 /config/extended/recyclarr-data
fi
/recyclarr/recyclarr sync $recylcarrApp -c /config/extended/recyclarr.yaml --app-data /config/extended/recyclarr-data
log "Complete"
}