Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/BuildImage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ jobs:
Building version $VERSION
EOF
# Insert version into scripts
sed -i -e "s/{{VERSION}}/$VERSION/" $GITHUB_WORKSPACE/root/usr/local/bin/flac2mp3.sh $GITHUB_WORKSPACE/root/etc/cont-init.d/98-flac2mp3
sed -i -e "s/{{VERSION}}/$VERSION/" \
$GITHUB_WORKSPACE/root/usr/local/bin/flac2mp3.sh \
$GITHUB_WORKSPACE/root/etc/cont-init.d/98-flac2mp3 \
$GITHUB_WORKSPACE/root/etc/s6-overlay/s6-rc.d/init-mod-lidarr-flac2mp3-add-package/run
# Build image
docker build --no-cache \
--tag ${{ github.sha }} .
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/with-contenv bash

cat <<EOF
----------------
>>> Flac2MP3 Mod by TheCaptain989 <<<
Repos:
Dev/test: https://github.com/TheCaptain989/lidarr-flac2mp3
Prod: https://github.com/linuxserver/docker-mods/tree/lidarr-flac2mp3

Version: {{VERSION}}
----------------
EOF

# Determine if setup is needed
if [ ! -f /usr/bin/ffmpeg ]; then
echo "**** Adding ffmpeg to package install list ****"
echo "ffmpeg" >> /mod-repo-packages-to-install.list
fi

# Change ownership
if [ $(stat -c '%G' /usr/local/bin/flac2mp3.sh) != "abc" ]; then
echo "Changing ownership on scripts."
chown abc:abc /usr/local/bin/flac2*.sh
fi

# Make executable
if [ ! -x /usr/local/bin/flac2mp3.sh ]; then
echo "Making scripts executable."
chmod +x /usr/local/bin/flac2*.sh
fi

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oneshot
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-mod-lidarr-flac2mp3-add-package/run
Empty file modified root/usr/local/bin/flac2alac.sh
100644 → 100755
Empty file.
Empty file modified root/usr/local/bin/flac2mp3-debug-2.sh
100644 → 100755
Empty file.
Empty file modified root/usr/local/bin/flac2mp3-debug.sh
100644 → 100755
Empty file.
Empty file modified root/usr/local/bin/flac2mp3-vbr.sh
100644 → 100755
Empty file.
Empty file modified root/usr/local/bin/flac2mp3.sh
100644 → 100755
Empty file.
Empty file modified root/usr/local/bin/flac2opus.sh
100644 → 100755
Empty file.