mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-06-06 08:11:54 +00:00
16 lines
277 B
Bash
Executable File
16 lines
277 B
Bash
Executable File
#!/bin/sh
|
|
|
|
export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin
|
|
|
|
if [ ! -e /dev/net/tun ]; then
|
|
echo 'FATAL: cannot start ZeroTier One in container: /dev/net/tun not present.'
|
|
exit 1
|
|
fi
|
|
|
|
exec "$@"
|
|
|
|
|
|
if ! [[ -z "${NETWORK_ID}" ]]; then
|
|
zerotier-cli join ${NETWORK_ID}
|
|
fi
|