mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-01-19 03:41:50 +08:00
Standardized apt-get update per aptalca
This commit is contained in:
parent
2122355540
commit
73cdbaa2d4
5
root/etc/cont-init.d/95-apt-get
Normal file
5
root/etc/cont-init.d/95-apt-get
Normal file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if [ -f /usr/bin/apt ]; then
|
||||
apt-get update
|
||||
fi
|
||||
@ -18,7 +18,6 @@ if [ ! -f /usr/bin/mkvmerge ]; then
|
||||
if [ -f /usr/bin/apt ]; then
|
||||
# Ubuntu
|
||||
echo "Installing MKVToolNix using apt-get"
|
||||
apt-get update && \
|
||||
apt-get -y install mkvtoolnix && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
elif [ -f /sbin/apk ]; then
|
||||
@ -29,7 +28,6 @@ if [ ! -f /usr/bin/mkvmerge ]; then
|
||||
else
|
||||
# Unknown
|
||||
echo "Unknown package manager. Attempting to install MKVToolNix using apt-get"
|
||||
apt-get update && \
|
||||
apt-get -y install mkvtoolnix && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user