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] 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