mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-03-23 00:05:28 +08:00
standardize apt-get, update formatting
This commit is contained in:
parent
511083907d
commit
8c330c52c3
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
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user