mirror of
https://github.com/unifi-utilities/unifios-utilities.git
synced 2024-08-30 18:32:21 +00:00
Fixing wireguard reboot
This commit is contained in:
parent
09e7bcd55b
commit
aeb70eb4c4
@ -1,10 +1,14 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
CONTAINER=wireguard
|
||||||
# Starts a wireguard container that is deleted after it is stopped.
|
# Starts a wireguard container that is deleted after it is stopped.
|
||||||
# All configs stored in /mnt/data/wireguard
|
# All configs stored in /mnt/data/wireguard
|
||||||
|
if podman container exists ${CONTAINER}; then
|
||||||
podman run -i -d --rm --net=host --name wireguard --privileged \
|
podman start ${CONTAINER}
|
||||||
|
else
|
||||||
|
podman run -i -d --rm --net=host --name ${CONTAINER} --privileged \
|
||||||
-v /mnt/data/wireguard:/etc/wireguard \
|
-v /mnt/data/wireguard:/etc/wireguard \
|
||||||
-v /dev/net/tun:/dev/net/tun \
|
-v /dev/net/tun:/dev/net/tun \
|
||||||
-e LOG_LEVEL=info -e WG_COLOR_MODE=always \
|
-e LOG_LEVEL=info -e WG_COLOR_MODE=always \
|
||||||
masipcat/wireguard-go
|
masipcat/wireguard-go
|
||||||
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user