Merge pull request #33 from justinglock40/patch-1

Update setup.bash
This commit is contained in:
RandomNinjaAtk 2023-07-23 10:13:26 -04:00 committed by GitHub
commit 10a70186d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,15 +49,16 @@ chmod 777 /config/scripts
echo "Downloading SMA config: /config/scripts/sma.ini" echo "Downloading SMA config: /config/scripts/sma.ini"
curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/sabnzbd/sma.ini" -o /config/sma.ini curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/sabnzbd/sma.ini" -o /config/sma.ini
if [ -f /config/sma.ini ]; then if [ -f /config/sma.ini ]; then
if [ -f /config/scripts/sma.ini ]; then if [ ! -f /config/scripts/sma.ini ]; then
echo "Removing /config/scripts/sma.ini" echo "Importing /config/sma.ini to /config/scripts/sma.ini"
rm /config/scripts/sma.ini mv /config/sma.ini /config/scripts/sma.ini
chmod 777 /config/scripts/sma.ini
else
echo "File /config/scripts/sma.ini already exists. Not overwriting."
fi fi
echo "Importing /config/sma.ini to /config/scripts/sma.ini"
mv /config/sma.ini /config/scripts/sma.ini
chmod 777 /config/scripts/sma.ini
fi fi
echo "Downloading Video script: /config/scripts/video.bash" echo "Downloading Video script: /config/scripts/video.bash"
curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/sabnzbd/video.bash" -o /config/video.bash curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/sabnzbd/video.bash" -o /config/video.bash
if [ -f /config/video.bash ]; then if [ -f /config/video.bash ]; then