zerotier-docker/main.sh
Lukas Prettenthaler f880c72c7d first commit
2017-03-29 11:03:49 +02:00

12 lines
215 B
Bash

#!/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 /zerotier-one