unifios-utilities/zerotier-one/20-zerotier.sh
Christian bc54b90f77
Update 20-zerotier.sh (#223)
replaced the name wireguard whit zerotier-one
2021-08-26 03:44:49 -07:00

11 lines
430 B
Bash
Executable File

#!/bin/sh
CONTAINER=zerotier-one
# Starts a ZeroTier container that is deleted after it is stopped.
# All configs stored in /mnt/data/zerotier-one
if podman container exists ${CONTAINER}; then
podman start ${CONTAINER}
else
podman run --device=/dev/net/tun --net=host --cap-add=NET_ADMIN --cap-add=SYS_ADMIN --cap-add=CAP_SYS_RAWIO -v /mnt/data/zerotier-one:/var/lib/zerotier-one --name zerotier-one -d bltavares/zerotier
fi