lidarr-dl/readarr/setup.bash

46 lines
1.7 KiB
Bash
Raw Normal View History

2023-07-16 20:31:22 +02:00
#!/usr/bin/with-contenv bash
echo "************ install and update packages ************"
apk add -U --update --no-cache \
jq \
py3-pip \
ffmpeg
2023-07-16 20:31:22 +02:00
echo "************ install python packages ************"
2024-03-27 21:43:07 +01:00
pip install --upgrade --no-cache-dir -U --break-system-packages yq
2023-07-16 20:31:22 +02:00
mkdir -p /custom-services.d
echo "Download AutoConfig service..."
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/readarr/AutoConfig.bash -o /custom-services.d/AutoConfig
echo "Done"
echo "Download QueueCleaner service..."
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/universal/services/QueueCleaner -o /custom-services.d/QueueCleaner
echo "Done"
mkdir -p /config/extended
2023-07-20 13:06:43 +02:00
echo "Download Script Functions..."
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/universal/functions.bash -o /config/extended/functions
echo "Done"
2023-07-16 20:31:22 +02:00
echo "Download PlexNotify script..."
2023-07-16 20:44:03 +02:00
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/readarr/PlexNotify.bash -o /config/extended/PlexNotify.bash
echo "Done"
echo "Download combine script..."
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/readarr/combine.bash -o /config/extended/combine.bash
echo "Done"
2023-07-16 20:44:03 +02:00
echo "Download AutoConfig config..."
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/readarr/AutoConfig.json -o /config/extended/AutoConfig.json
2023-07-16 20:31:22 +02:00
echo "Done"
2023-07-16 20:34:34 +02:00
2023-07-17 12:34:26 +02:00
chmod 777 -R /config/extended
2023-07-16 20:34:34 +02:00
if [ ! -f /config/extended.conf ]; then
echo "Download Extended config..."
2023-07-16 20:34:44 +02:00
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/readarr/extended.conf -o /config/extended.conf
2023-07-16 20:34:34 +02:00
chmod 777 /config/extended.conf
echo "Done"
fi
2023-07-16 20:31:22 +02:00
exit