mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-10 01:43:49 -04:00
Release 2.2
- 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
This commit is contained in:
@@ -44,4 +44,3 @@ if [ ! -x /usr/local/bin/flac2mp3.sh ]; then
|
||||
echo "Making scripts executable."
|
||||
chmod +x /usr/local/bin/flac2*.sh
|
||||
fi
|
||||
|
||||
|
||||
@@ -13,19 +13,24 @@ 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
|
||||
echo "**** Adding ffmpeg to package install list ****"
|
||||
echo "ffmpeg" >> /mod-repo-packages-to-install.list
|
||||
else
|
||||
echo "**** flac2mp3 deps already installed, skipping ****"
|
||||
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
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user