Revert formatting changes
This commit is contained in:
parent
9326a80c98
commit
132fa97b3f
1 changed files with 79 additions and 69 deletions
|
@ -2,60 +2,60 @@
|
||||||
SMA_PATH="/usr/local/sma"
|
SMA_PATH="/usr/local/sma"
|
||||||
version="1.3"
|
version="1.3"
|
||||||
|
|
||||||
echo "*** install packages ***" &&
|
echo "*** install packages ***" && \
|
||||||
apk add -U --upgrade --no-cache \
|
apk add -U --upgrade --no-cache \
|
||||||
tidyhtml \
|
tidyhtml \
|
||||||
musl-locales \
|
musl-locales \
|
||||||
musl-locales-lang \
|
musl-locales-lang \
|
||||||
flac \
|
flac \
|
||||||
jq \
|
jq \
|
||||||
git \
|
git \
|
||||||
gcc \
|
gcc \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
imagemagick \
|
imagemagick \
|
||||||
opus-tools \
|
opus-tools \
|
||||||
opustags \
|
opustags \
|
||||||
python3-dev \
|
python3-dev \
|
||||||
libc-dev \
|
libc-dev \
|
||||||
py3-pip \
|
py3-pip \
|
||||||
npm &&
|
npm && \
|
||||||
echo "*** install freyr client ***" &&
|
echo "*** install freyr client ***" && \
|
||||||
apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing atomicparsley &&
|
apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing atomicparsley && \
|
||||||
npm install -g miraclx/freyr-js &&
|
npm install -g miraclx/freyr-js &&\
|
||||||
echo "*** install python packages ***" &&
|
echo "*** install python packages ***" && \
|
||||||
pip install --upgrade --no-cache-dir --break-system-packages \
|
pip install --upgrade --no-cache-dir --break-system-packages \
|
||||||
jellyfish \
|
jellyfish \
|
||||||
beautifulsoup4 \
|
beautifulsoup4 \
|
||||||
yt-dlp \
|
yt-dlp \
|
||||||
beets \
|
beets \
|
||||||
yq \
|
yq \
|
||||||
pyxDamerauLevenshtein \
|
pyxDamerauLevenshtein \
|
||||||
pyacoustid \
|
pyacoustid \
|
||||||
requests \
|
requests \
|
||||||
colorama \
|
colorama \
|
||||||
python-telegram-bot \
|
python-telegram-bot \
|
||||||
pylast \
|
pylast \
|
||||||
mutagen \
|
mutagen \
|
||||||
r128gain \
|
r128gain \
|
||||||
tidal-dl \
|
tidal-dl \
|
||||||
deemix &&
|
deemix && \
|
||||||
echo "************ setup SMA ************"
|
echo "************ setup SMA ************"
|
||||||
if [ -d "${SMA_PATH}" ]; then
|
if [ -d "${SMA_PATH}" ]; then
|
||||||
rm -rf "${SMA_PATH}"
|
rm -rf "${SMA_PATH}"
|
||||||
fi
|
fi
|
||||||
echo "************ setup directory ************" &&
|
echo "************ setup directory ************" && \
|
||||||
mkdir -p ${SMA_PATH} &&
|
mkdir -p ${SMA_PATH} && \
|
||||||
echo "************ download repo ************" &&
|
echo "************ download repo ************" && \
|
||||||
git clone https://github.com/mdhiggins/sickbeard_mp4_automator.git ${SMA_PATH} &&
|
git clone https://github.com/mdhiggins/sickbeard_mp4_automator.git ${SMA_PATH} && \
|
||||||
mkdir -p ${SMA_PATH}/config &&
|
mkdir -p ${SMA_PATH}/config && \
|
||||||
echo "************ create logging file ************" &&
|
echo "************ create logging file ************" && \
|
||||||
mkdir -p ${SMA_PATH}/config &&
|
mkdir -p ${SMA_PATH}/config && \
|
||||||
touch ${SMA_PATH}/config/sma.log &&
|
touch ${SMA_PATH}/config/sma.log && \
|
||||||
chgrp users ${SMA_PATH}/config/sma.log &&
|
chgrp users ${SMA_PATH}/config/sma.log && \
|
||||||
chmod g+w ${SMA_PATH}/config/sma.log &&
|
chmod g+w ${SMA_PATH}/config/sma.log && \
|
||||||
echo "************ install pip dependencies ************" &&
|
echo "************ install pip dependencies ************" && \
|
||||||
python3 -m pip install --break-system-packages --upgrade pip &&
|
python3 -m pip install --break-system-packages --upgrade pip && \
|
||||||
pip3 install --break-system-packages -r ${SMA_PATH}/setup/requirements.txt
|
pip3 install --break-system-packages -r ${SMA_PATH}/setup/requirements.txt
|
||||||
|
|
||||||
mkdir -p /custom-services.d
|
mkdir -p /custom-services.d
|
||||||
|
|
||||||
|
@ -92,6 +92,8 @@ echo "Download ARLChecker service..."
|
||||||
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/python/ARLChecker.py -o /custom-services.d/python/ARLChecker.py
|
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/python/ARLChecker.py -o /custom-services.d/python/ARLChecker.py
|
||||||
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/ARLChecker -o /custom-services.d/ARLChecker
|
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/ARLChecker -o /custom-services.d/ARLChecker
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo "Done"
|
echo "Done"
|
||||||
|
|
||||||
mkdir -p /config/extended
|
mkdir -p /config/extended
|
||||||
|
@ -100,23 +102,23 @@ curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/universal
|
||||||
echo "Done"
|
echo "Done"
|
||||||
|
|
||||||
echo "Download PlexNotify script..."
|
echo "Download PlexNotify script..."
|
||||||
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/PlexNotify.bash -o /config/extended/PlexNotify.bash
|
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/PlexNotify.bash -o /config/extended/PlexNotify.bash
|
||||||
echo "Done"
|
echo "Done"
|
||||||
|
|
||||||
echo "Download SMA config..."
|
echo "Download SMA config..."
|
||||||
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/sma.ini -o /config/extended/sma.ini
|
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/sma.ini -o /config/extended/sma.ini
|
||||||
echo "Done"
|
echo "Done"
|
||||||
|
|
||||||
if [ ! -f /config/extended/beets-config.yaml ]; then
|
if [ ! -f /config/extended/beets-config.yaml ]; then
|
||||||
echo "Download Beets config..."
|
echo "Download Beets config..."
|
||||||
curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/beets-config.yaml" -o /config/extended/beets-config.yaml
|
curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/beets-config.yaml" -o /config/extended/beets-config.yaml
|
||||||
echo "Done"
|
echo "Done"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f /config/extended/beets-config-lidarr.yaml ]; then
|
if [ ! -f /config/extended/beets-config-lidarr.yaml ]; then
|
||||||
echo "Download Beets lidarr config..."
|
echo "Download Beets lidarr config..."
|
||||||
curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/beets-config-lidarr.yaml" -o /config/extended/beets-config-lidarr.yaml
|
curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/beets-config-lidarr.yaml" -o /config/extended/beets-config-lidarr.yaml
|
||||||
echo "Done"
|
echo "Done"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f /config/extended/deemix_config.json ]; then
|
if [ ! -f /config/extended/deemix_config.json ]; then
|
||||||
|
@ -131,6 +133,14 @@ if [ ! -f /config/extended/tidal-dl.json ]; then
|
||||||
echo "Done"
|
echo "Done"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Download Deemix config..."
|
||||||
|
curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/deemix_config.json" -o /config/extended/deemix_config.json
|
||||||
|
echo "Done"
|
||||||
|
|
||||||
|
echo "Download Tidal config..."
|
||||||
|
curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/tidal-dl.json" -o /config/extended/tidal-dl.json
|
||||||
|
echo "Done"
|
||||||
|
|
||||||
echo "Download LyricExtractor script..."
|
echo "Download LyricExtractor script..."
|
||||||
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/LyricExtractor.bash -o /config/extended/LyricExtractor.bash
|
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/LyricExtractor.bash -o /config/extended/LyricExtractor.bash
|
||||||
echo "Done"
|
echo "Done"
|
||||||
|
@ -144,23 +154,23 @@ curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/Be
|
||||||
echo "Done"
|
echo "Done"
|
||||||
|
|
||||||
if [ ! -f /config/extended/beets-genre-whitelist.txt ]; then
|
if [ ! -f /config/extended/beets-genre-whitelist.txt ]; then
|
||||||
echo "Download beets-genre-whitelist.txt..."
|
echo "Download beets-genre-whitelist.txt..."
|
||||||
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/beets-genre-whitelist.txt -o /config/extended/beets-genre-whitelist.txt
|
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/beets-genre-whitelist.txt -o /config/extended/beets-genre-whitelist.txt
|
||||||
echo "Done"
|
echo "Done"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f /config/extended.conf ]; then
|
if [ ! -f /config/extended.conf ]; then
|
||||||
echo "Download Extended config..."
|
echo "Download Extended config..."
|
||||||
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/extended.conf -o /config/extended.conf
|
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/extended.conf -o /config/extended.conf
|
||||||
chmod 777 /config/extended.conf
|
chmod 777 /config/extended.conf
|
||||||
echo "Done"
|
echo "Done"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 777 -R /config/extended
|
chmod 777 -R /config/extended
|
||||||
chmod 777 -R /root
|
chmod 777 -R /root
|
||||||
|
|
||||||
if [ -f /custom-services.d/scripts_init.bash ]; then
|
if [ -f /custom-services.d/scripts_init.bash ]; then
|
||||||
# user misconfiguration detected, sleeping...
|
# user misconfiguration detected, sleeping...
|
||||||
sleep infinity
|
sleep infinity
|
||||||
fi
|
fi
|
||||||
exit
|
exit
|
||||||
|
|
Loading…
Reference in a new issue