Merge pull request #426 from linuxserver/universal-tshoot-v3

Switch to hybrid (universal-tshoot)
This commit is contained in:
aptalca 2022-08-30 12:21:54 -04:00 committed by GitHub
commit 3883984651
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 20 additions and 1 deletions

2
root/etc/cont-init.d/95-apt-get Normal file → Executable file
View File

@ -2,4 +2,4 @@
if [ -f /usr/bin/apt ]; then
apt-get update
fi
fi

0
root/etc/cont-init.d/95-tshoot-config Normal file → Executable file
View File

View File

@ -0,0 +1,17 @@
#!/usr/bin/with-contenv bash
## Ubuntu
if [ -f /usr/bin/apt ]; then
echo "\
dnsutils \
net-tools \
iputils-ping \
traceroute" >> /mod-repo-packages-to-install.list
fi
# Alpine
if [ -f /sbin/apk ]; then
echo "\
bind-tools \
net-tools" >> /mod-repo-packages-to-install.list
fi

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-mod-tshoot/run