Update setup.bash
This commit is contained in:
parent
7b5ff1b64b
commit
f6c5ba2b54
1 changed files with 19 additions and 19 deletions
|
@ -4,11 +4,12 @@ scriptVersion="1.0"
|
||||||
######## Package dependencies installation
|
######## Package dependencies installation
|
||||||
InstallRequirements () {
|
InstallRequirements () {
|
||||||
echo "Installing Required Packages..."
|
echo "Installing Required Packages..."
|
||||||
apk add -U --update --no-cache curl jq python3-dev py3-pip git ffmpeg &>/dev/null
|
apk add -U --update --no-cache curl jq python3-dev py3-pip git ffmpeg
|
||||||
pip install --upgrade --no-cache-dir -U yq &>/dev/null
|
pip install --upgrade --no-cache-dir -U yq
|
||||||
echo "Done"
|
echo "Done"
|
||||||
|
if [ -d /config/scripts/sma ]; then
|
||||||
if [ ! -f /config/scripts/sma/manual.py ]; then
|
rm -rf /config/scripts/sma
|
||||||
|
fi
|
||||||
echo "************ setup SMA ************"
|
echo "************ setup SMA ************"
|
||||||
echo "************ setup directory ************"
|
echo "************ setup directory ************"
|
||||||
mkdir -p /config/scripts/sma
|
mkdir -p /config/scripts/sma
|
||||||
|
@ -18,20 +19,19 @@ InstallRequirements () {
|
||||||
echo "************ create logging file ************"
|
echo "************ create logging file ************"
|
||||||
mkdir -p /config/scripts/sma/config
|
mkdir -p /config/scripts/sma/config
|
||||||
touch /config/scripts/sma/config/sma.log
|
touch /config/scripts/sma/config/sma.log
|
||||||
chgrp users /config/scripts/sma/config/sma.log
|
|
||||||
chmod g+w /config/scripts/sma/config/sma.log
|
|
||||||
echo "************ install pip dependencies ************"
|
echo "************ install pip dependencies ************"
|
||||||
pip install --upgrade pip --no-cache-dir
|
pip install --upgrade pip --no-cache-dir
|
||||||
pip install -r /config/scripts/sma/setup/requirements.txt --no-cache-dir
|
pip install -r /config/scripts/sma/setup/requirements.txt --no-cache-dir
|
||||||
chmod 777 -R /config/scripts/sma
|
chmod 777 -R /config/scripts/sma
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
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"
|
||||||
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"
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue