mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-01 12:31:49 -04:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user