Update setup.bash

This commit is contained in:
RandomNinjaAtk 2023-07-07 12:29:00 -04:00 committed by GitHub
parent f6c5ba2b54
commit 7137e80a30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
#!/usr/bin/with-contenv bash #!/usr/bin/with-contenv bash
scriptVersion="1.0" scriptVersion="1.1"
######## Package dependencies installation ######## Package dependencies installation
InstallRequirements () { InstallRequirements () {
@ -25,13 +25,14 @@ InstallRequirements () {
chmod 777 -R /config/scripts/sma chmod 777 -R /config/scripts/sma
} }
echo "Setup Script Version: $scriptVersion"
InstallRequirements InstallRequirements
mkdir -p /config/scripts mkdir -p /config/scripts
chmod 777 /config/scripts 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/scripts/sma.ini curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/sabnzbd/sma.ini" -O /config/scripts/sma.ini
echo "Downloading Video script config: /config/scripts/video.bash" echo "Downloading Video script config: /config/scripts/video.bash"
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/sabnzbd/video.bash -O /config/scripts/video.bash curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/sabnzbd/video.bash" -O /config/scripts/video.bash
chmod 777 -R /config/scripts chmod 777 -R /config/scripts
exit exit