Update setup.bash

This commit is contained in:
billsbdb3 2024-07-03 15:20:28 -04:00 committed by GitHub
parent c58b070b09
commit 374c3cceff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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