From d5b547e0069eb09f3460ced56b0e86f40a031b4a Mon Sep 17 00:00:00 2001 From: billsbdb3 <64713235+billsbdb3@users.noreply.github.com> Date: Wed, 3 Jul 2024 10:53:18 -0400 Subject: [PATCH 01/13] added || true after pip install/changed alpine link to point to dontnet8-runtime added || true after pip install to ensure the script continues if there are failures. Alpine removed dotnet7-runtime. --- radarr/setup.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/radarr/setup.bash b/radarr/setup.bash index 2d5506b..c1bd0d7 100644 --- a/radarr/setup.bash +++ b/radarr/setup.bash @@ -48,14 +48,14 @@ touch ${SMA_PATH}/config/sma.log && \ chgrp users ${SMA_PATH}/config/sma.log && \ chmod g+w ${SMA_PATH}/config/sma.log && \ echo "************ install pip dependencies ************" && \ -python3 -m pip install --break-system-packages --upgrade pip && \ -pip3 install --break-system-packages -r ${SMA_PATH}/setup/requirements.txt && \ +python3 -m pip install --break-system-packages --upgrade pip && \ +pip3 install --break-system-packages -r ${SMA_PATH}/setup/requirements.txt || true echo "************ install recyclarr ************" && \ mkdir -p /recyclarr && \ wget "https://github.com/recyclarr/recyclarr/releases/latest/download/recyclarr-linux-musl-x64.tar.xz" -O "/recyclarr/recyclarr.tar.xz" && \ tar -xf /recyclarr/recyclarr.tar.xz -C /recyclarr &>/dev/null && \ chmod 777 /recyclarr/recyclarr -apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/community dotnet7-runtime +apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/community dotnet8-runtime mkdir -p /custom-services.d echo "Download QueueCleaner service..." From 63e0a88af639669d508a8250fcdefc50b3e68ff3 Mon Sep 17 00:00:00 2001 From: billsbdb3 <64713235+billsbdb3@users.noreply.github.com> Date: Wed, 3 Jul 2024 11:55:14 -0400 Subject: [PATCH 02/13] Update Recyclarr --- universal/services/Recyclarr | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/universal/services/Recyclarr b/universal/services/Recyclarr index 71d4ab2..66dd4ca 100644 --- a/universal/services/Recyclarr +++ b/universal/services/Recyclarr @@ -8,6 +8,10 @@ source /config/extended.conf source /config/extended/functions #### Create Log File logfileSetup + +# Redirect all output to the log file +exec &> >(tee -a "/config/logs/$logFileName") + #### Check Arr App getArrAppInfo verifyApiAccess @@ -37,20 +41,19 @@ RecyclarrProcess () { fi /recyclarr/recyclarr sync -c $recyclarrConfig --app-data /config/extended/recyclarr-data - log "Complete" } # Loop Script for (( ; ; )); do - let i++ - logfileSetup - verifyConfig - getArrAppInfo - verifyApiAccess - RecyclarrProcess - log "Script sleeping for $recyclarrScriptInterval..." - sleep $recyclarrScriptInterval + let i++ + logfileSetup + verifyConfig + getArrAppInfo + verifyApiAccess + RecyclarrProcess + log "Script sleeping for $recyclarrScriptInterval..." + sleep $recyclarrScriptInterval done exit From 3af447b7360be862b5019692ffac377101a31745 Mon Sep 17 00:00:00 2001 From: billsbdb3 <64713235+billsbdb3@users.noreply.github.com> Date: Wed, 3 Jul 2024 14:22:38 -0400 Subject: [PATCH 03/13] Update Recyclarr --- universal/services/Recyclarr | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/universal/services/Recyclarr b/universal/services/Recyclarr index 66dd4ca..9f205c5 100644 --- a/universal/services/Recyclarr +++ b/universal/services/Recyclarr @@ -28,10 +28,10 @@ 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" + sed -i "s%arrApi%$arrApiKey%g" "/config/extended/recyclarr.yaml" # update arr app log "Updating Arr via Recyclarr" @@ -39,7 +39,9 @@ RecyclarrProcess () { mkdir -p /config/extended/recyclarr-data chmod 777 /config/extended/recyclarr-data fi - /recyclarr/recyclarr sync -c $recyclarrConfig --app-data /config/extended/recyclarr-data + + # Run Recyclarr and capture the output + /recyclarr/recyclarr sync -c $recyclarrConfig --app-data /config/extended/recyclarr-data 2>&1 | tee -a "/config/logs/$logFileName" log "Complete" } From 48c8caa3ef176ffe34e8c31a497e959ff17a6a5c Mon Sep 17 00:00:00 2001 From: billsbdb3 <64713235+billsbdb3@users.noreply.github.com> Date: Wed, 3 Jul 2024 14:25:25 -0400 Subject: [PATCH 04/13] Update Recyclarr --- universal/services/Recyclarr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/universal/services/Recyclarr b/universal/services/Recyclarr index 9f205c5..f279b43 100644 --- a/universal/services/Recyclarr +++ b/universal/services/Recyclarr @@ -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" @@ -41,7 +41,7 @@ RecyclarrProcess () { fi # Run Recyclarr and capture the output - /recyclarr/recyclarr sync -c $recyclarrConfig --app-data /config/extended/recyclarr-data 2>&1 | tee -a "/config/logs/$logFileName" + /recyclarr/recyclarr sync -c $recyclarrConfig --app-data /config/extended/recyclarr-data 2>&1 | while IFS= read -r line; do log "$line"; done log "Complete" } From eb51668887038f890ee6188b814b1826c310f744 Mon Sep 17 00:00:00 2001 From: billsbdb3 <64713235+billsbdb3@users.noreply.github.com> Date: Wed, 3 Jul 2024 14:29:35 -0400 Subject: [PATCH 05/13] Update Recyclarr --- universal/services/Recyclarr | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/universal/services/Recyclarr b/universal/services/Recyclarr index f279b43..df513d4 100644 --- a/universal/services/Recyclarr +++ b/universal/services/Recyclarr @@ -28,12 +28,12 @@ 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" - # update arr app + # Update arr app log "Updating Arr via Recyclarr" if [ ! -d /config/extended/recyclarr-data ]; then mkdir -p /config/extended/recyclarr-data @@ -41,7 +41,9 @@ RecyclarrProcess () { 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 log "$line"; done + /recyclarr/recyclarr sync -c $recyclarrConfig --app-data /config/extended/recyclarr-data 2>&1 | while IFS= read -r line; do + log "$line" + done log "Complete" } From 9676849fb189d7e00d73cffd967e4c939276d13c Mon Sep 17 00:00:00 2001 From: billsbdb3 <64713235+billsbdb3@users.noreply.github.com> Date: Wed, 3 Jul 2024 14:32:09 -0400 Subject: [PATCH 06/13] Update Recyclarr --- universal/services/Recyclarr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/universal/services/Recyclarr b/universal/services/Recyclarr index df513d4..f7ce305 100644 --- a/universal/services/Recyclarr +++ b/universal/services/Recyclarr @@ -41,9 +41,9 @@ RecyclarrProcess () { 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 + while IFS= read -r line; do log "$line" - done + done < <(/recyclarr/recyclarr sync -c $recyclarrConfig --app-data /config/extended/recyclarr-data 2>&1) log "Complete" } From 512286de020aec366506e1457f4ad9d1f5e8b093 Mon Sep 17 00:00:00 2001 From: billsbdb3 <64713235+billsbdb3@users.noreply.github.com> Date: Wed, 3 Jul 2024 14:34:20 -0400 Subject: [PATCH 07/13] Update Recyclarr --- universal/services/Recyclarr | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/universal/services/Recyclarr b/universal/services/Recyclarr index f7ce305..8f20e24 100644 --- a/universal/services/Recyclarr +++ b/universal/services/Recyclarr @@ -9,8 +9,10 @@ source /config/extended/functions #### Create Log File logfileSetup +logfile="/config/logs/$logFileName" + # Redirect all output to the log file -exec &> >(tee -a "/config/logs/$logFileName") +exec &> >(tee -a "$logfile") #### Check Arr App getArrAppInfo @@ -28,12 +30,12 @@ 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" + sed -i "s%arrApi%$arrApiKey%g" "/config/extended/recyclarr.yaml" - # Update arr app + # update arr app log "Updating Arr via Recyclarr" if [ ! -d /config/extended/recyclarr-data ]; then mkdir -p /config/extended/recyclarr-data @@ -41,9 +43,9 @@ RecyclarrProcess () { fi # Run Recyclarr and capture the output - while IFS= read -r line; do - log "$line" - done < <(/recyclarr/recyclarr sync -c $recyclarrConfig --app-data /config/extended/recyclarr-data 2>&1) + /recyclarr/recyclarr sync -c $recyclarrConfig --app-data /config/extended/recyclarr-data 2>&1 | tee -a "$logfile" | while IFS= read -r line; do + echo "$(date "+%F %T") :: $scriptName :: $scriptVersion :: $line" + done >> "$logfile" log "Complete" } From e14eecc85f0b8604db7d4a1068f20b64e3d642df Mon Sep 17 00:00:00 2001 From: billsbdb3 <64713235+billsbdb3@users.noreply.github.com> Date: Wed, 3 Jul 2024 14:36:06 -0400 Subject: [PATCH 08/13] Update Recyclarr --- universal/services/Recyclarr | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/universal/services/Recyclarr b/universal/services/Recyclarr index 8f20e24..8c7458e 100644 --- a/universal/services/Recyclarr +++ b/universal/services/Recyclarr @@ -9,10 +9,8 @@ source /config/extended/functions #### Create Log File logfileSetup -logfile="/config/logs/$logFileName" - -# Redirect all output to the log file -exec &> >(tee -a "$logfile") +# Redirect all output to a temporary log file to avoid duplicate logs +exec &> >(tee -a /tmp/recyclarr_temp.log) #### Check Arr App getArrAppInfo @@ -35,7 +33,7 @@ RecyclarrProcess () { sed -i "s%arrUrl%$arrUrl%g" "/config/extended/recyclarr.yaml" sed -i "s%arrApi%$arrApiKey%g" "/config/extended/recyclarr.yaml" - # update arr app + # Update arr app log "Updating Arr via Recyclarr" if [ ! -d /config/extended/recyclarr-data ]; then mkdir -p /config/extended/recyclarr-data @@ -43,13 +41,21 @@ RecyclarrProcess () { fi # Run Recyclarr and capture the output - /recyclarr/recyclarr sync -c $recyclarrConfig --app-data /config/extended/recyclarr-data 2>&1 | tee -a "$logfile" | while IFS= read -r line; do - echo "$(date "+%F %T") :: $scriptName :: $scriptVersion :: $line" - done >> "$logfile" + /recyclarr/recyclarr sync -c $recyclarrConfig --app-data /config/extended/recyclarr-data 2>&1 | while IFS= read -r line; do + log "$line" + done log "Complete" } +# Move the temporary log file to the final log file +move_logs() { + while IFS= read -r line; do + echo "$(date "+%F %T") :: $scriptName :: $scriptVersion :: $line" >> "/config/logs/$logFileName" + done < /tmp/recyclarr_temp.log + rm /tmp/recyclarr_temp.log +} + # Loop Script for (( ; ; )); do let i++ @@ -60,6 +66,7 @@ for (( ; ; )); do RecyclarrProcess log "Script sleeping for $recyclarrScriptInterval..." sleep $recyclarrScriptInterval + move_logs done exit From 62d4b3f518dab9c35520edabcf1b8dce76dd1688 Mon Sep 17 00:00:00 2001 From: billsbdb3 <64713235+billsbdb3@users.noreply.github.com> Date: Wed, 3 Jul 2024 14:41:10 -0400 Subject: [PATCH 09/13] Update Recyclarr --- universal/services/Recyclarr | 32 +++++++++++--------------------- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/universal/services/Recyclarr b/universal/services/Recyclarr index 8c7458e..0d361af 100644 --- a/universal/services/Recyclarr +++ b/universal/services/Recyclarr @@ -9,12 +9,12 @@ source /config/extended/functions #### Create Log File logfileSetup -# Redirect all output to a temporary log file to avoid duplicate logs -exec &> >(tee -a /tmp/recyclarr_temp.log) +logfile="/config/logs/$logFileName" -#### Check Arr App -getArrAppInfo -verifyApiAccess +log() { + m_time=$(date "+%F %T") + echo "$m_time :: $scriptName :: $scriptVersion :: $1" | tee -a "$logfile" +} verifyConfig () { if [ "$enableRecyclarr" != "true" ]; then @@ -28,13 +28,13 @@ 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" + sed -i "s%arrApi%$arrApiKey%g" "/config/extended/recyclarr.yaml" - # Update arr app log "Updating Arr via Recyclarr" + if [ ! -d /config/extended/recyclarr-data ]; then mkdir -p /config/extended/recyclarr-data chmod 777 /config/extended/recyclarr-data @@ -42,23 +42,14 @@ RecyclarrProcess () { # 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 - log "$line" + echo "$(date "+%F %T") :: $scriptName :: $scriptVersion :: $line" | tee -a "$logfile" done - + log "Complete" } -# Move the temporary log file to the final log file -move_logs() { - while IFS= read -r line; do - echo "$(date "+%F %T") :: $scriptName :: $scriptVersion :: $line" >> "/config/logs/$logFileName" - done < /tmp/recyclarr_temp.log - rm /tmp/recyclarr_temp.log -} - -# Loop Script +# Main Loop for (( ; ; )); do - let i++ logfileSetup verifyConfig getArrAppInfo @@ -66,7 +57,6 @@ for (( ; ; )); do RecyclarrProcess log "Script sleeping for $recyclarrScriptInterval..." sleep $recyclarrScriptInterval - move_logs done exit From aa6359afea075859d453a5ae51284d3e695eb590 Mon Sep 17 00:00:00 2001 From: billsbdb3 <64713235+billsbdb3@users.noreply.github.com> Date: Wed, 3 Jul 2024 14:43:40 -0400 Subject: [PATCH 10/13] Update Recyclarr --- universal/services/Recyclarr | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/universal/services/Recyclarr b/universal/services/Recyclarr index 0d361af..757ad53 100644 --- a/universal/services/Recyclarr +++ b/universal/services/Recyclarr @@ -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" } From c58b070b09d6cc9c211db97c14261b1a5e334e35 Mon Sep 17 00:00:00 2001 From: billsbdb3 <64713235+billsbdb3@users.noreply.github.com> Date: Wed, 3 Jul 2024 14:55:11 -0400 Subject: [PATCH 11/13] Update setup.bash --- radarr/setup.bash | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/radarr/setup.bash b/radarr/setup.bash index c1bd0d7..f270aa0 100644 --- a/radarr/setup.bash +++ b/radarr/setup.bash @@ -20,7 +20,7 @@ pip install --upgrade --no-cache-dir -U --break-system-packages \ yt-dlp \ yq && \ echo "************ setup SMA ************" -if [ -d "${SMA_PATH}" ]; then +if [ -d "${SMA_PATH}" ]; then rm -rf "${SMA_PATH}" fi echo "*********SMA WORKAROUND ************" @@ -50,11 +50,16 @@ chmod g+w ${SMA_PATH}/config/sma.log && \ echo "************ install pip dependencies ************" && \ python3 -m pip install --break-system-packages --upgrade pip && \ pip3 install --break-system-packages -r ${SMA_PATH}/setup/requirements.txt || true + +echo "************ install qtfaststart ************" +pip3 install qtfaststart || echo "qtfaststart installation failed, continuing..." + echo "************ install recyclarr ************" && \ mkdir -p /recyclarr && \ wget "https://github.com/recyclarr/recyclarr/releases/latest/download/recyclarr-linux-musl-x64.tar.xz" -O "/recyclarr/recyclarr.tar.xz" && \ tar -xf /recyclarr/recyclarr.tar.xz -C /recyclarr &>/dev/null && \ chmod 777 /recyclarr/recyclarr + apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/community dotnet8-runtime mkdir -p /custom-services.d @@ -83,26 +88,25 @@ echo "Download Script Functions..." curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/universal/functions.bash -o /config/extended/functions echo "Done" - if [ ! -f /config/extended/naming.json ]; then - echo "Download Naming script..." - curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/radarr/naming.json -o /config/extended/naming.json - echo "Done" + echo "Download Naming script..." + curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/radarr/naming.json -o /config/extended/naming.json + echo "Done" fi mkdir -p /config/extended echo "Download PlexNotify script..." -curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/radarr/PlexNotify.bash -o /config/extended/PlexNotify.bash +curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/radarr/PlexNotify.bash -o /config/extended/PlexNotify.bash echo "Done" echo "Download Extras script..." -curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/radarr/Extras.bash -o /config/extended/Extras.bash +curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/radarr/Extras.bash -o /config/extended/Extras.bash echo "Done" if [ ! -f /config/extended/sma.ini ]; then - echo "Download SMA config..." - curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/radarr/sma.ini -o /config/extended/sma.ini - echo "Done" + echo "Download SMA config..." + curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/radarr/sma.ini -o /config/extended/sma.ini + echo "Done" fi echo "Download Recyclarr service..." @@ -110,19 +114,18 @@ curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/universal echo "Done" if [ ! -f /config/extended/recyclarr.yaml ]; then - echo "Download Recyclarr config..." - curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/radarr/recyclarr.yaml -o /config/extended/recyclarr.yaml - echo "Done" + echo "Download Recyclarr config..." + curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/radarr/recyclarr.yaml -o /config/extended/recyclarr.yaml + echo "Done" fi if [ ! -f /config/extended.conf ]; then - echo "Download Extended config..." - curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/radarr/extended.conf -o /config/extended.conf - chmod 777 /config/extended.conf - echo "Done" + echo "Download Extended config..." + curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/radarr/extended.conf -o /config/extended.conf + chmod 777 /config/extended.conf + echo "Done" fi - chmod 777 -R /config/extended if [ -f /custom-services.d/scripts_init.bash ]; then # user misconfiguration detected, sleeping... From 374c3cceff71246cb33d4c287d1373f0aef4c8c2 Mon Sep 17 00:00:00 2001 From: billsbdb3 <64713235+billsbdb3@users.noreply.github.com> Date: Wed, 3 Jul 2024 15:20:28 -0400 Subject: [PATCH 12/13] Update setup.bash --- radarr/setup.bash | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/radarr/setup.bash b/radarr/setup.bash index f270aa0..4ead44e 100644 --- a/radarr/setup.bash +++ b/radarr/setup.bash @@ -15,12 +15,13 @@ apk add -U --update --no-cache \ gcc \ ffmpeg && \ echo "************ install python packages ************" && \ +pip install --upgrade pip==24.1 && \ pip install --upgrade --no-cache-dir -U --break-system-packages \ excludarr \ yt-dlp \ yq && \ echo "************ setup SMA ************" -if [ -d "${SMA_PATH}" ]; then +if [ -d "${SMA_PATH}" ]; then rm -rf "${SMA_PATH}" fi echo "*********SMA WORKAROUND ************" @@ -48,18 +49,19 @@ touch ${SMA_PATH}/config/sma.log && \ chgrp users ${SMA_PATH}/config/sma.log && \ chmod g+w ${SMA_PATH}/config/sma.log && \ echo "************ install pip dependencies ************" && \ -python3 -m pip install --break-system-packages --upgrade pip && \ +python3 -m pip install --break-system-packages --upgrade pip==24.1 && \ pip3 install --break-system-packages -r ${SMA_PATH}/setup/requirements.txt || true -echo "************ install qtfaststart ************" -pip3 install qtfaststart || echo "qtfaststart installation failed, continuing..." +echo "************ install qtfaststart ************" && \ +git clone https://github.com/danielgtaylor/qtfaststart.git /tmp/qtfaststart && \ +cd /tmp/qtfaststart && \ +python3 setup.py install echo "************ install recyclarr ************" && \ mkdir -p /recyclarr && \ wget "https://github.com/recyclarr/recyclarr/releases/latest/download/recyclarr-linux-musl-x64.tar.xz" -O "/recyclarr/recyclarr.tar.xz" && \ tar -xf /recyclarr/recyclarr.tar.xz -C /recyclarr &>/dev/null && \ -chmod 777 /recyclarr/recyclarr - +chmod 777 /recyclarr/recyclarr && \ apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/community dotnet8-runtime mkdir -p /custom-services.d @@ -90,22 +92,22 @@ echo "Done" if [ ! -f /config/extended/naming.json ]; then echo "Download Naming script..." - curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/radarr/naming.json -o /config/extended/naming.json + curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/radarr/naming.json -o /config/extended/naming.json echo "Done" fi mkdir -p /config/extended echo "Download PlexNotify script..." -curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/radarr/PlexNotify.bash -o /config/extended/PlexNotify.bash +curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/radarr/PlexNotify.bash -o /config/extended/PlexNotify.bash echo "Done" echo "Download Extras script..." -curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/radarr/Extras.bash -o /config/extended/Extras.bash +curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/radarr/Extras.bash -o /config/extended/Extras.bash echo "Done" if [ ! -f /config/extended/sma.ini ]; then echo "Download SMA config..." - curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/radarr/sma.ini -o /config/extended/sma.ini + curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/radarr/sma.ini -o /config/extended/sma.ini echo "Done" fi From 4892b40802215744f9d33e4e78238d0c280b186e Mon Sep 17 00:00:00 2001 From: billsbdb3 <64713235+billsbdb3@users.noreply.github.com> Date: Wed, 3 Jul 2024 15:21:00 -0400 Subject: [PATCH 13/13] Update setup.bash --- radarr/setup.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radarr/setup.bash b/radarr/setup.bash index 4ead44e..602ceac 100644 --- a/radarr/setup.bash +++ b/radarr/setup.bash @@ -112,7 +112,7 @@ if [ ! -f /config/extended/sma.ini ]; then fi echo "Download Recyclarr service..." -curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/universal/services/Recyclarr -o /custom-services.d/Recyclarr +curl https://raw.githubusercontent.com/billsbdb3/arr-scripts/main/universal/services/Recyclarr -o /custom-services.d/Recyclarr echo "Done" if [ ! -f /config/extended/recyclarr.yaml ]; then