From f9e7b300d615d73431a8f70e2c26b6f7746857cc Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Mon, 10 Jul 2023 10:47:13 +0000 Subject: [PATCH] v1.2 - Make recyclarr data persistent --- universal/services/Recycalarr | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/universal/services/Recycalarr b/universal/services/Recycalarr index 92fae22..4fce404 100644 --- a/universal/services/Recycalarr +++ b/universal/services/Recycalarr @@ -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" }