Create setup.bash
This commit is contained in:
parent
e20cf524a3
commit
044e71cbc3
1 changed files with 78 additions and 0 deletions
78
lidarr/setup.bash
Normal file
78
lidarr/setup.bash
Normal file
|
@ -0,0 +1,78 @@
|
|||
#!/usr/bin/with-contenv bash
|
||||
SMA_PATH="/usr/local/sma"
|
||||
|
||||
echo "*** install packages ***" && \
|
||||
apk add -U --upgrade --no-cache \
|
||||
tidyhtml \
|
||||
musl-locales \
|
||||
musl-locales-lang \
|
||||
flac \
|
||||
jq \
|
||||
git \
|
||||
gcc \
|
||||
ffmpeg \
|
||||
imagemagick \
|
||||
opus-tools \
|
||||
python3-dev \
|
||||
libc-dev \
|
||||
py3-pip \
|
||||
npm \
|
||||
yt-dlp && \
|
||||
echo "*** install freyr client ***" && \
|
||||
apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing atomicparsley && \
|
||||
npm install -g miraclx/freyr-js &&\
|
||||
echo "*** install beets ***" && \
|
||||
apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/community beets && \
|
||||
echo "*** install python packages ***" && \
|
||||
pip install --upgrade --no-cache-dir \
|
||||
yq \
|
||||
pyacoustid \
|
||||
requests \
|
||||
pylast \
|
||||
mutagen \
|
||||
r128gain \
|
||||
tidal-dl \
|
||||
deemix && \
|
||||
echo "************ setup SMA ************" && \
|
||||
echo "************ setup directory ************" && \
|
||||
mkdir -p ${SMA_PATH} && \
|
||||
echo "************ download repo ************" && \
|
||||
git clone https://github.com/mdhiggins/sickbeard_mp4_automator.git ${SMA_PATH} && \
|
||||
mkdir -p ${SMA_PATH}/config && \
|
||||
echo "************ create logging file ************" && \
|
||||
mkdir -p ${SMA_PATH}/config && \
|
||||
touch ${SMA_PATH}/config/sma.log && \
|
||||
chgrp users ${SMA_PATH}/config/sma.log && \
|
||||
chmod g+w ${SMA_PATH}/config/sma.log && \
|
||||
echo "************ install pip dependencies ************" && \
|
||||
python3 -m pip install --upgrade pip && \
|
||||
pip3 install -r ${SMA_PATH}/setup/requirements.txt
|
||||
|
||||
mkdir -p /custom-services.d
|
||||
echo "Download QueueCleaner service..."
|
||||
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/universal/services/QueueCleaner -o /custom-services.d/QueueCleaner
|
||||
echo "Done"
|
||||
|
||||
echo "Download AutoConfig service..."
|
||||
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/AutoConfig.service -o /custom-services.d/AutoConfig
|
||||
echo "Done"
|
||||
|
||||
mkdir -p /config/extended
|
||||
echo "Download Naming script..."
|
||||
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/naming.json -o /config/extended/naming.json
|
||||
echo "Done"
|
||||
|
||||
mkdir -p /config/extended
|
||||
echo "Download PlexNotify script..."
|
||||
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/PlexNotify.bash -o /config/extended/PlexNotify.bash
|
||||
echo "Done"
|
||||
|
||||
|
||||
echo "Download SMA config..."
|
||||
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/sma.ini -o /config/extended/sma.ini
|
||||
echo "Done"
|
||||
|
||||
|
||||
chmod 777 -R /config/extended
|
||||
|
||||
exit
|
Loading…
Reference in a new issue