Update 98-script-setup.bash

pull/49/head
RandomNinjaAtk 2 years ago committed by GitHub
parent 50bf8fe681
commit decd530f70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -37,22 +37,19 @@ if [ ! -f "/config/extended/configs/sma.ini" ]; then
cp /sma.ini "/config/extended/configs/sma.ini"
fi
echo "Setting up scripts..."
if [ -f "/config/extended/scripts/QueueCleaner.bash" ]; then
echo "Removing old script, QueueCleaner.bash"
rm "/config/extended/scripts/QueueCleaner.bash"
fi
echo "Downloading and setting up QueueCleaner.bash"
curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/QueueCleaner.bash" -o "/config/extended/scripts/QueueCleaner.bash"
chmod 777 "/config/extended/scripts/QueueCleaner.bash"
# set permissions
chmod 777 -R /usr/local/sma
find /config/extended -type d -exec chmod 777 {} \;
find /config/extended -type f -exec chmod 666 {} \;
chmod -R 777 /config/extended/scripts
echo "Setting up scripts..."
if [ -f "/custom-services.d/QueueCleaner.bash" ]; then
echo "Removing old script, QueueCleaner.bash"
rm "/custom-services.d/QueueCleaner.bash"
fi
if [ ! -d /custom-services.d ]; then
mkdir -p /custom-services.d
fi
echo "Downloading and setting up QueueCleaner.bash"
curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/QueueCleaner.bash" -o "/custom-services.d/QueueCleaner.bash"
chmod 777 "/custom-services.d/QueueCleaner.bash"
echo "Complete..."
exit

Loading…
Cancel
Save