mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-15 15:50:22 -04:00
standardize apt-get, update formatting
This commit is contained in:
@@ -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
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
## Ubuntu
|
## Ubuntu
|
||||||
if [ -f /usr/bin/apt ]; then
|
if [ -f /usr/bin/apt ]; then
|
||||||
apt-get update
|
|
||||||
apt-get install --no-install-recommends -y \
|
apt-get install --no-install-recommends -y \
|
||||||
dnsutils \
|
dnsutils \
|
||||||
net-tools \
|
net-tools \
|
||||||
iputils-ping \
|
iputils-ping \
|
||||||
traceroute
|
traceroute
|
||||||
fi
|
fi
|
||||||
# Alpine
|
# Alpine
|
||||||
if [ -f /sbin/apk ]; then
|
if [ -f /sbin/apk ]; then
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
bind-tools \
|
bind-tools \
|
||||||
net-tools
|
net-tools
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user