Release 2.3 candidate 1

- Added Original language feature
- Added :org special purpose language code (Resolves #392)
- Added example scripts to use :org code
- Cleaned up awk code
- Modified removed track logging to be a single line
- Removed tracks now are logged as Informational instead of Debug
- Moved position argument check earlier
- Updated README
- Changed some log messages to make them more concise
- Added version option
- Reverted to single-stage build
- Insert version into scripts during build
- Updates Radarr/Sonarr version check to use v3 API. This makes the script fully compatible with Radarr v4.
- Added debug info for system API
- Added debug info for config API
- Preparation for S6 V3
This commit is contained in:
TheCaptain989
2022-08-30 14:23:52 -05:00
parent d9abfefe2e
commit 1bcd422bc2
8 changed files with 204 additions and 154 deletions
+23 -22
View File
@@ -7,40 +7,41 @@ Repos:
Dev/test: https://github.com/TheCaptain989/radarr-striptracks
Prod: https://github.com/linuxserver/docker-mods/tree/radarr-striptracks
Version: $(cat /etc/version.tc989)
Version: {{VERSION}}
----------------
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 -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 -y install mkvtoolnix && \
rm -rf /var/lib/apt/lists/*
fi
echo "Running first time setup."
if [ -f /usr/bin/apt ]; then
# Ubuntu
echo "Installing MKVToolNix using apt-get"
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 -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
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
echo "Making scripts executable."
chmod +x /usr/local/bin/striptracks*.sh
fi