mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-02 06:28:34 -04:00
Merge pull request #441 from linuxserver/lidarr-flac2mp3-s6v3
switch to hybrid (lidarr-flac2mp3)
This commit is contained in:
@@ -21,7 +21,10 @@ jobs:
|
|||||||
Building version $VERSION
|
Building version $VERSION
|
||||||
EOF
|
EOF
|
||||||
# Insert version into scripts
|
# 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
|
# Build image
|
||||||
docker build --no-cache \
|
docker build --no-cache \
|
||||||
--tag ${{ github.sha }} .
|
--tag ${{ github.sha }} .
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
oneshot
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
/etc/s6-overlay/s6-rc.d/init-mod-lidarr-flac2mp3-add-package/run
|
||||||
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Reference in New Issue
Block a user