Skip to content

Commit 132fa97

Browse files
committed
Revert formatting changes
1 parent 9326a80 commit 132fa97

File tree

1 file changed

+79
-69
lines changed

1 file changed

+79
-69
lines changed

lidarr/setup.bash

Lines changed: 79 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -2,60 +2,60 @@
22
SMA_PATH="/usr/local/sma"
33
version="1.3"
44

5-
echo "*** install packages ***" &&
6-
apk add -U --upgrade --no-cache \
7-
tidyhtml \
8-
musl-locales \
9-
musl-locales-lang \
10-
flac \
11-
jq \
12-
git \
13-
gcc \
14-
ffmpeg \
15-
imagemagick \
16-
opus-tools \
17-
opustags \
18-
python3-dev \
19-
libc-dev \
20-
py3-pip \
21-
npm &&
22-
echo "*** install freyr client ***" &&
23-
apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing atomicparsley &&
24-
npm install -g miraclx/freyr-js &&
25-
echo "*** install python packages ***" &&
26-
pip install --upgrade --no-cache-dir --break-system-packages \
27-
jellyfish \
28-
beautifulsoup4 \
29-
yt-dlp \
30-
beets \
31-
yq \
32-
pyxDamerauLevenshtein \
33-
pyacoustid \
34-
requests \
35-
colorama \
36-
python-telegram-bot \
37-
pylast \
38-
mutagen \
39-
r128gain \
40-
tidal-dl \
41-
deemix &&
42-
echo "************ setup SMA ************"
43-
if [ -d "${SMA_PATH}" ]; then
5+
echo "*** install packages ***" && \
6+
apk add -U --upgrade --no-cache \
7+
tidyhtml \
8+
musl-locales \
9+
musl-locales-lang \
10+
flac \
11+
jq \
12+
git \
13+
gcc \
14+
ffmpeg \
15+
imagemagick \
16+
opus-tools \
17+
opustags \
18+
python3-dev \
19+
libc-dev \
20+
py3-pip \
21+
npm && \
22+
echo "*** install freyr client ***" && \
23+
apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing atomicparsley && \
24+
npm install -g miraclx/freyr-js &&\
25+
echo "*** install python packages ***" && \
26+
pip install --upgrade --no-cache-dir --break-system-packages \
27+
jellyfish \
28+
beautifulsoup4 \
29+
yt-dlp \
30+
beets \
31+
yq \
32+
pyxDamerauLevenshtein \
33+
pyacoustid \
34+
requests \
35+
colorama \
36+
python-telegram-bot \
37+
pylast \
38+
mutagen \
39+
r128gain \
40+
tidal-dl \
41+
deemix && \
42+
echo "************ setup SMA ************"
43+
if [ -d "${SMA_PATH}" ]; then
4444
rm -rf "${SMA_PATH}"
4545
fi
46-
echo "************ setup directory ************" &&
47-
mkdir -p ${SMA_PATH} &&
48-
echo "************ download repo ************" &&
49-
git clone https://github.com/mdhiggins/sickbeard_mp4_automator.git ${SMA_PATH} &&
50-
mkdir -p ${SMA_PATH}/config &&
51-
echo "************ create logging file ************" &&
52-
mkdir -p ${SMA_PATH}/config &&
53-
touch ${SMA_PATH}/config/sma.log &&
54-
chgrp users ${SMA_PATH}/config/sma.log &&
55-
chmod g+w ${SMA_PATH}/config/sma.log &&
56-
echo "************ install pip dependencies ************" &&
57-
python3 -m pip install --break-system-packages --upgrade pip &&
58-
pip3 install --break-system-packages -r ${SMA_PATH}/setup/requirements.txt
46+
echo "************ setup directory ************" && \
47+
mkdir -p ${SMA_PATH} && \
48+
echo "************ download repo ************" && \
49+
git clone https://github.com/mdhiggins/sickbeard_mp4_automator.git ${SMA_PATH} && \
50+
mkdir -p ${SMA_PATH}/config && \
51+
echo "************ create logging file ************" && \
52+
mkdir -p ${SMA_PATH}/config && \
53+
touch ${SMA_PATH}/config/sma.log && \
54+
chgrp users ${SMA_PATH}/config/sma.log && \
55+
chmod g+w ${SMA_PATH}/config/sma.log && \
56+
echo "************ install pip dependencies ************" && \
57+
python3 -m pip install --break-system-packages --upgrade pip && \
58+
pip3 install --break-system-packages -r ${SMA_PATH}/setup/requirements.txt
5959

6060
mkdir -p /custom-services.d
6161

@@ -92,6 +92,8 @@ echo "Download ARLChecker service..."
9292
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/python/ARLChecker.py -o /custom-services.d/python/ARLChecker.py
9393
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/ARLChecker -o /custom-services.d/ARLChecker
9494

95+
96+
9597
echo "Done"
9698

9799
mkdir -p /config/extended
@@ -100,23 +102,23 @@ curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/universal
100102
echo "Done"
101103

102104
echo "Download PlexNotify script..."
103-
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/PlexNotify.bash -o /config/extended/PlexNotify.bash
105+
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/PlexNotify.bash -o /config/extended/PlexNotify.bash
104106
echo "Done"
105107

106108
echo "Download SMA config..."
107-
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/sma.ini -o /config/extended/sma.ini
109+
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/sma.ini -o /config/extended/sma.ini
108110
echo "Done"
109111

110112
if [ ! -f /config/extended/beets-config.yaml ]; then
111-
echo "Download Beets config..."
112-
curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/beets-config.yaml" -o /config/extended/beets-config.yaml
113-
echo "Done"
113+
echo "Download Beets config..."
114+
curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/beets-config.yaml" -o /config/extended/beets-config.yaml
115+
echo "Done"
114116
fi
115117

116118
if [ ! -f /config/extended/beets-config-lidarr.yaml ]; then
117-
echo "Download Beets lidarr config..."
118-
curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/beets-config-lidarr.yaml" -o /config/extended/beets-config-lidarr.yaml
119-
echo "Done"
119+
echo "Download Beets lidarr config..."
120+
curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/beets-config-lidarr.yaml" -o /config/extended/beets-config-lidarr.yaml
121+
echo "Done"
120122
fi
121123

122124
if [ ! -f /config/extended/deemix_config.json ]; then
@@ -131,6 +133,14 @@ if [ ! -f /config/extended/tidal-dl.json ]; then
131133
echo "Done"
132134
fi
133135

136+
echo "Download Deemix config..."
137+
curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/deemix_config.json" -o /config/extended/deemix_config.json
138+
echo "Done"
139+
140+
echo "Download Tidal config..."
141+
curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/tidal-dl.json" -o /config/extended/tidal-dl.json
142+
echo "Done"
143+
134144
echo "Download LyricExtractor script..."
135145
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/LyricExtractor.bash -o /config/extended/LyricExtractor.bash
136146
echo "Done"
@@ -144,23 +154,23 @@ curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/Be
144154
echo "Done"
145155

146156
if [ ! -f /config/extended/beets-genre-whitelist.txt ]; then
147-
echo "Download beets-genre-whitelist.txt..."
148-
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/beets-genre-whitelist.txt -o /config/extended/beets-genre-whitelist.txt
149-
echo "Done"
157+
echo "Download beets-genre-whitelist.txt..."
158+
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/beets-genre-whitelist.txt -o /config/extended/beets-genre-whitelist.txt
159+
echo "Done"
150160
fi
151161

152162
if [ ! -f /config/extended.conf ]; then
153-
echo "Download Extended config..."
154-
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/extended.conf -o /config/extended.conf
155-
chmod 777 /config/extended.conf
156-
echo "Done"
163+
echo "Download Extended config..."
164+
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/extended.conf -o /config/extended.conf
165+
chmod 777 /config/extended.conf
166+
echo "Done"
157167
fi
158168

159169
chmod 777 -R /config/extended
160170
chmod 777 -R /root
161171

162172
if [ -f /custom-services.d/scripts_init.bash ]; then
163-
# user misconfiguration detected, sleeping...
164-
sleep infinity
173+
# user misconfiguration detected, sleeping...
174+
sleep infinity
165175
fi
166176
exit

0 commit comments

Comments
 (0)