mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-02-04 20:49:31 +08:00
Merge pull request #516 from TheCaptain989/radarr-striptracks
Radar: striptracks Release 2.3.1
This commit is contained in:
commit
8e2fda6f25
@ -7,26 +7,30 @@ 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 "**** Adding striptracks deps to package install list ****"
|
||||
echo "mkvtoolnix" >> /mod-repo-packages-to-install.list
|
||||
echo "**** Adding striptracks deps to package install list ****"
|
||||
echo "mkvtoolnix" >> /mod-repo-packages-to-install.list
|
||||
else
|
||||
echo "**** striptracks deps already installed, skipping ****"
|
||||
echo "**** striptracks deps already installed, skipping ****"
|
||||
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
|
||||
fi
|
||||
# Check ownership and attributes on each script file
|
||||
for file in /usr/local/bin/striptracks*.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 /usr/local/bin/striptracks.sh ]; then
|
||||
echo "Making scripts executable."
|
||||
chmod +x /usr/local/bin/striptracks*.sh
|
||||
fi
|
||||
# Make executable
|
||||
if [ ! -x $file ]; then
|
||||
echo "Making $file script executable."
|
||||
chmod +x $file
|
||||
fi
|
||||
done
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user