Skip to content

Commit 2a2faa2

Browse files
authored
Merge pull request #441 from linuxserver/lidarr-flac2mp3-s6v3
switch to hybrid (lidarr-flac2mp3)
2 parents 8083862 + f5ab4d4 commit 2a2faa2

13 files changed

Lines changed: 37 additions & 1 deletion

File tree

.github/workflows/BuildImage.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ jobs:
2121
Building version $VERSION
2222
EOF
2323
# Insert version into scripts
24-
sed -i -e "s/{{VERSION}}/$VERSION/" $GITHUB_WORKSPACE/root/usr/local/bin/flac2mp3.sh $GITHUB_WORKSPACE/root/etc/cont-init.d/98-flac2mp3
24+
sed -i -e "s/{{VERSION}}/$VERSION/" \
25+
$GITHUB_WORKSPACE/root/usr/local/bin/flac2mp3.sh \
26+
$GITHUB_WORKSPACE/root/etc/cont-init.d/98-flac2mp3 \
27+
$GITHUB_WORKSPACE/root/etc/s6-overlay/s6-rc.d/init-mod-lidarr-flac2mp3-add-package/run
2528
# Build image
2629
docker build --no-cache \
2730
--tag ${{ github.sha }} .

root/etc/s6-overlay/s6-rc.d/init-mod-lidarr-flac2mp3-add-package/dependencies.d/init-mods

Whitespace-only changes.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/with-contenv bash
2+
3+
cat <<EOF
4+
----------------
5+
>>> Flac2MP3 Mod by TheCaptain989 <<<
6+
Repos:
7+
Dev/test: https://github.com/TheCaptain989/lidarr-flac2mp3
8+
Prod: https://github.com/linuxserver/docker-mods/tree/lidarr-flac2mp3
9+
10+
Version: {{VERSION}}
11+
----------------
12+
EOF
13+
14+
# Determine if setup is needed
15+
if [ ! -f /usr/bin/ffmpeg ]; then
16+
echo "**** Adding ffmpeg to package install list ****"
17+
echo "ffmpeg" >> /mod-repo-packages-to-install.list
18+
fi
19+
20+
# Change ownership
21+
if [ $(stat -c '%G' /usr/local/bin/flac2mp3.sh) != "abc" ]; then
22+
echo "Changing ownership on scripts."
23+
chown abc:abc /usr/local/bin/flac2*.sh
24+
fi
25+
26+
# Make executable
27+
if [ ! -x /usr/local/bin/flac2mp3.sh ]; then
28+
echo "Making scripts executable."
29+
chmod +x /usr/local/bin/flac2*.sh
30+
fi
31+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
oneshot
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/etc/s6-overlay/s6-rc.d/init-mod-lidarr-flac2mp3-add-package/run

root/etc/s6-overlay/s6-rc.d/init-mods-package-install/dependencies.d/init-mod-lidarr-flac2mp3-add-package

Whitespace-only changes.

root/etc/s6-overlay/s6-rc.d/user/contents.d/init-mod-lidarr-flac2mp3-add-package

Whitespace-only changes.

root/usr/local/bin/flac2alac.sh

100644100755
File mode changed.

root/usr/local/bin/flac2mp3-debug-2.sh

100644100755
File mode changed.

root/usr/local/bin/flac2mp3-debug.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)