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"
|
||||
version="1.3"
|
||||
|
||||
echo "*** install packages ***" &&
|
||||
apk add -U --upgrade --no-cache \
|
||||
tidyhtml \
|
||||
musl-locales \
|
||||
musl-locales-lang \
|
||||
flac \
|
||||
jq \
|
||||
git \
|
||||
gcc \
|
||||
ffmpeg \
|
||||
imagemagick \
|
||||
opus-tools \
|
||||
opustags \
|
||||
python3-dev \
|
||||
libc-dev \
|
||||
py3-pip \
|
||||
npm &&
|
||||
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 python packages ***" &&
|
||||
pip install --upgrade --no-cache-dir --break-system-packages \
|
||||
jellyfish \
|
||||
beautifulsoup4 \
|
||||
yt-dlp \
|
||||
beets \
|
||||
yq \
|
||||
pyxDamerauLevenshtein \
|
||||
pyacoustid \
|
||||
requests \
|
||||
colorama \
|
||||
python-telegram-bot \
|
||||
pylast \
|
||||
mutagen \
|
||||
r128gain \
|
||||
tidal-dl \
|
||||
deemix &&
|
||||
echo "************ setup SMA ************"
|
||||
if [ -d "${SMA_PATH}" ]; then
|
||||
echo "*** install packages ***" && \
|
||||
apk add -U --upgrade --no-cache \
|
||||
tidyhtml \
|
||||
musl-locales \
|
||||
musl-locales-lang \
|
||||
flac \
|
||||
jq \
|
||||
git \
|
||||
gcc \
|
||||
ffmpeg \
|
||||
imagemagick \
|
||||
opus-tools \
|
||||
opustags \
|
||||
python3-dev \
|
||||
libc-dev \
|
||||
py3-pip \
|
||||
npm && \
|
||||
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 python packages ***" && \
|
||||
pip install --upgrade --no-cache-dir --break-system-packages \
|
||||
jellyfish \
|
||||
beautifulsoup4 \
|
||||
yt-dlp \
|
||||
beets \
|
||||
yq \
|
||||
pyxDamerauLevenshtein \
|
||||
pyacoustid \
|
||||
requests \
|
||||
colorama \
|
||||
python-telegram-bot \
|
||||
pylast \
|
||||
mutagen \
|
||||
r128gain \
|
||||
tidal-dl \
|
||||
deemix && \
|
||||
echo "************ setup SMA ************"
|
||||
if [ -d "${SMA_PATH}" ]; then
|
||||
rm -rf "${SMA_PATH}"
|
||||
fi
|
||||
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 --break-system-packages --upgrade pip &&
|
||||
pip3 install --break-system-packages -r ${SMA_PATH}/setup/requirements.txt
|
||||
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 --break-system-packages --upgrade pip && \
|
||||
pip3 install --break-system-packages -r ${SMA_PATH}/setup/requirements.txt
|
||||
|
||||
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/ARLChecker -o /custom-services.d/ARLChecker
|
||||
|
||||
|
||||
|
||||
echo "Done"
|
||||
|
||||
mkdir -p /config/extended
|
||||
|
@ -108,15 +110,15 @@ curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/sm
|
|||
echo "Done"
|
||||
|
||||
if [ ! -f /config/extended/beets-config.yaml ]; then
|
||||
echo "Download Beets config..."
|
||||
curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/beets-config.yaml" -o /config/extended/beets-config.yaml
|
||||
echo "Done"
|
||||
echo "Download Beets config..."
|
||||
curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/beets-config.yaml" -o /config/extended/beets-config.yaml
|
||||
echo "Done"
|
||||
fi
|
||||
|
||||
if [ ! -f /config/extended/beets-config-lidarr.yaml ]; then
|
||||
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
|
||||
echo "Done"
|
||||
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
|
||||
echo "Done"
|
||||
fi
|
||||
|
||||
if [ ! -f /config/extended/deemix_config.json ]; then
|
||||
|
@ -131,6 +133,14 @@ if [ ! -f /config/extended/tidal-dl.json ]; then
|
|||
echo "Done"
|
||||
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..."
|
||||
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/LyricExtractor.bash -o /config/extended/LyricExtractor.bash
|
||||
echo "Done"
|
||||
|
@ -144,23 +154,23 @@ curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/Be
|
|||
echo "Done"
|
||||
|
||||
if [ ! -f /config/extended/beets-genre-whitelist.txt ]; then
|
||||
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
|
||||
echo "Done"
|
||||
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
|
||||
echo "Done"
|
||||
fi
|
||||
|
||||
if [ ! -f /config/extended.conf ]; then
|
||||
echo "Download Extended config..."
|
||||
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/extended.conf -o /config/extended.conf
|
||||
chmod 777 /config/extended.conf
|
||||
echo "Done"
|
||||
echo "Download Extended config..."
|
||||
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/extended.conf -o /config/extended.conf
|
||||
chmod 777 /config/extended.conf
|
||||
echo "Done"
|
||||
fi
|
||||
|
||||
chmod 777 -R /config/extended
|
||||
chmod 777 -R /root
|
||||
|
||||
if [ -f /custom-services.d/scripts_init.bash ]; then
|
||||
# user misconfiguration detected, sleeping...
|
||||
sleep infinity
|
||||
# user misconfiguration detected, sleeping...
|
||||
sleep infinity
|
||||
fi
|
||||
exit
|
||||
|
|
Loading…
Reference in a new issue