mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-20 10:21:36 -04:00
64b36034ee
- Switch to hybrid S6 - **Added --regex option** TheCaptain989/lidarr-flac2mp3#33 - **Added optional use of environment variable** TheCaptain989/lidarr-flac2mp3#33 - **Added new --tags option to resolve TheCaptain989/lidarr-flac2mp3#15** - Added checks for identical track name - Recycled files are now moved to subdirectory paths that more closely resemble the original path - Better error handling in awk script when calling system commands - Added logging for skipped tracks - Corrected some logging anomalies - Modified exit codes - Updated command line help - Fixed missing executable attribute on some script files - Updated README
37 lines
883 B
Plaintext
Executable File
37 lines
883 B
Plaintext
Executable File
#!/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
|
|
else
|
|
echo "**** flac2mp3 deps already installed, skipping ****"
|
|
fi
|
|
|
|
# Check ownership and attributes on each script file
|
|
for file in /usr/local/bin/flac2mp3*.sh
|
|
do
|
|
# Change ownership
|
|
if [ $(stat -c '%G' $file) != "abc" ]; then
|
|
echo "Changing ownership on $file script."
|
|
chown abc:abc $file
|
|
fi
|
|
|
|
# Make executable
|
|
if [ ! -x $file ]; then
|
|
echo "Making $file script executable."
|
|
chmod +x $file
|
|
fi
|
|
done
|