5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-22 18:45:40 +00:00

Allow ExecStartPre to fail for containers (#573)

This commit is contained in:
Neil Alexander 2019-10-23 11:15:57 +01:00
parent fc71624919
commit b0bcf29d27
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -9,7 +9,7 @@ ProtectHome=true
ProtectSystem=true
SyslogIdentifier=yggdrasil
CapabilityBoundSet=CAP_NET_ADMIN
ExecStartPre=+/sbin/modprobe tun
ExecStartPre=+-/sbin/modprobe tun
ExecStartPre=/bin/sh -ec "if ! test -s /etc/yggdrasil.conf; \
then umask 077; \
yggdrasil -genconf > /etc/yggdrasil.conf; \