mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 08:48:27 -04:00
Merge pull request #516 from TheCaptain989/radarr-striptracks
Radar: striptracks Release 2.3.1
This commit is contained in:
@@ -7,26 +7,30 @@ Repos:
|
|||||||
Dev/test: https://github.com/TheCaptain989/radarr-striptracks
|
Dev/test: https://github.com/TheCaptain989/radarr-striptracks
|
||||||
Prod: https://github.com/linuxserver/docker-mods/tree/radarr-striptracks
|
Prod: https://github.com/linuxserver/docker-mods/tree/radarr-striptracks
|
||||||
|
|
||||||
Version: $(cat /etc/version.tc989)
|
Version: {{VERSION}}
|
||||||
----------------
|
----------------
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Determine if setup is needed
|
# Determine if setup is needed
|
||||||
if [ ! -f /usr/bin/mkvmerge ]; then
|
if [ ! -f /usr/bin/mkvmerge ]; then
|
||||||
echo "**** Adding striptracks deps to package install list ****"
|
echo "**** Adding striptracks deps to package install list ****"
|
||||||
echo "mkvtoolnix" >> /mod-repo-packages-to-install.list
|
echo "mkvtoolnix" >> /mod-repo-packages-to-install.list
|
||||||
else
|
else
|
||||||
echo "**** striptracks deps already installed, skipping ****"
|
echo "**** striptracks deps already installed, skipping ****"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Change ownership
|
# Check ownership and attributes on each script file
|
||||||
if [ $(stat -c '%G' /usr/local/bin/striptracks.sh) != "abc" ]; then
|
for file in /usr/local/bin/striptracks*.sh
|
||||||
echo "Changing ownership on scripts."
|
do
|
||||||
chown abc:abc /usr/local/bin/striptracks*.sh
|
# Change ownership
|
||||||
fi
|
if [ $(stat -c '%G' $file) != "abc" ]; then
|
||||||
|
echo "Changing ownership on $file script."
|
||||||
|
chown abc:abc $file
|
||||||
|
fi
|
||||||
|
|
||||||
# Make executable
|
# Make executable
|
||||||
if [ ! -x /usr/local/bin/striptracks.sh ]; then
|
if [ ! -x $file ]; then
|
||||||
echo "Making scripts executable."
|
echo "Making $file script executable."
|
||||||
chmod +x /usr/local/bin/striptracks*.sh
|
chmod +x $file
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user