Merge pull request #231 from linuxserver/universal-tshoot-apt

standardize apt-get, update formatting
This commit is contained in:
Roxedus 2021-06-29 18:08:32 +02:00 committed by GitHub
commit 4354dfe6b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 13 deletions

View File

@ -0,0 +1,5 @@
#!/usr/bin/with-contenv bash
if [ -f /usr/bin/apt ]; then
apt-get update
fi

View File

@ -1,17 +1,16 @@
#!/usr/bin/with-contenv bash
## Ubuntu
if [ -f /usr/bin/apt ]; then
apt-get update
## Ubuntu
if [ -f /usr/bin/apt ]; then
apt-get install --no-install-recommends -y \
dnsutils \
net-tools \
iputils-ping \
traceroute
fi
# Alpine
if [ -f /sbin/apk ]; then
dnsutils \
net-tools \
iputils-ping \
traceroute
fi
# Alpine
if [ -f /sbin/apk ]; then
apk add --no-cache \
bind-tools \
net-tools
fi
bind-tools \
net-tools
fi