mirror of
https://github.com/unifi-utilities/unifios-utilities.git
synced 2024-08-30 18:32:21 +00:00
bc54b90f77
replaced the name wireguard whit zerotier-one
11 lines
430 B
Bash
Executable File
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
|
|
|