Changes to make systemd docs work with 3.0

CREATE_TUN_DEVICE is now set to true by default and spaces in OPENVPN_CONFIG are no longer escaped.
This commit is contained in:
Matthew Thomas
2020-11-08 10:45:08 -06:00
committed by GitHub
parent 1970f54b88
commit 9f6f6548fe

View File

@@ -21,12 +21,11 @@ ExecStartPre=/usr/bin/docker pull haugene/transmission-openvpn
ExecStart=/usr/bin/docker run \ ExecStart=/usr/bin/docker run \
--name transmission-openvpn \ --name transmission-openvpn \
--cap-add=NET_ADMIN \ --cap-add=NET_ADMIN \
--device=/dev/net/tun \
-v /home/bittorrent/data/:/data \ -v /home/bittorrent/data/:/data \
-e "OPENVPN_PROVIDER=TORGUARD" \ -e "OPENVPN_PROVIDER=TORGUARD" \
-e "OPENVPN_USERNAME=bittorrent@example.com" \ -e "OPENVPN_USERNAME=bittorrent@example.com" \
-e "OPENVPN_PASSWORD=hunter2" \ -e "OPENVPN_PASSWORD=hunter2" \
-e "OPENVPN_CONFIG=CA\ Toronto" \ -e "OPENVPN_CONFIG=CA Toronto" \
-e "OPENVPN_OPTS=--inactive 3600 --ping 10 --ping-exit 60" \ -e "OPENVPN_OPTS=--inactive 3600 --ping 10 --ping-exit 60" \
-e "TRANSMISSION_UMASK=0" \ -e "TRANSMISSION_UMASK=0" \
-p 9091:9091 \ -p 9091:9091 \
@@ -53,4 +52,4 @@ If it is stopped or killed in any fashion, systemd will restart the container. I
$ sudo systemctl stop transmission-openvpn.service $ sudo systemctl stop transmission-openvpn.service
# Later ... # Later ...
$ sudo systemctl start transmission-openvpn.service $ sudo systemctl start transmission-openvpn.service
``` ```