mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-17 13:52:56 -04:00
Standardized apt-get update per aptalca
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user