Initial release

This commit is contained in:
TheCaptain989
2020-10-30 11:52:03 -05:00
parent 9894f804f5
commit 297b1a1013
20 changed files with 347 additions and 687 deletions
+46
View File
@@ -0,0 +1,46 @@
#!/usr/bin/with-contenv bash
cat <<EOF
----------------
>>> Flac2MP3 Mod by TheCaptain989 <<<
Repo: https://github.com/linuxserver/docker-mods/tree/lidarr-flac2mp3
Version: $(cat /etc/version.tc989)
----------------
EOF
# Determine if setup is needed
if [ ! -f /usr/bin/ffmpeg ]; then
echo "Running first time setup."
if [ -f /usr/bin/apt ]; then
# Ubuntu
echo "Installing ffmpeg using apt-get"
apt-get update && \
apt-get -y install ffmpeg && \
rm -rf /var/lib/apt/lists/*
elif [ -f /sbin/apk ]; then
# Alpine
echo "Installing ffmpeg using apk"
apk add --no-cache ffmpeg && \
rm -rf /var/lib/apt/lists/*
else
# Unknown
echo "Unknown package manager. Attempting to install ffmpeg using apt-get"
apt-get update && \
apt-get -y install ffmpeg && \
rm -rf /var/lib/apt/lists/*
fi
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/flac2mp3*.sh
fi
# Make executable
if [ ! -x /usr/local/bin/flac2mp3.sh ]; then
echo "Making scripts executable."
chmod +x /usr/local/bin/flac2mp3*.sh
fi
-47
View File
@@ -1,47 +0,0 @@
#!/usr/bin/with-contenv bash
cat <<EOF
----------------
>>> Striptracks Mod by TheCaptain989 <<<
Repo: https://github.com/linuxserver/docker-mods/tree/radarr-striptracks
Version: $(cat /etc/version.tc989)
----------------
EOF
# Determine if setup is needed
if [ ! -f /usr/bin/mkvmerge ]; then
echo "Running first time setup."
if [ -f /usr/bin/apt ]; then
# Ubuntu
echo "Installing MKVToolNix using apt-get"
apt-get update && \
apt-get -y install mkvtoolnix && \
rm -rf /var/lib/apt/lists/*
elif [ -f /sbin/apk ]; then
# Alpine
echo "Installing MKVToolNix using apk"
apk add --no-cache mkvtoolnix && \
rm -rf /var/lib/apt/lists/*
else
# Unknown
echo "Unknown package manager. Attempting to install MKVToolNix using apt-get"
apt-get update && \
apt-get -y install mkvtoolnix && \
rm -rf /var/lib/apt/lists/*
fi
fi
# Change ownership
if [ $(stat -c '%G' /usr/local/bin/striptracks.sh) != "abc" ]; then
echo "Changing ownership on scripts."
chown abc:abc /usr/local/bin/striptracks*.sh
fi
# Make executable
if [ ! -x /usr/local/bin/striptracks.sh ]; then
echo "Making scripts executable."
chmod +x /usr/local/bin/striptracks*.sh
fi