From 1129eb09bc19c761de093437859cbbdbe387a99e Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Tue, 17 Jan 2017 07:27:21 -0800 Subject: [PATCH] systemd: Remove read-only flag on volume * The read-only flag will create issues with those trying to add certificates to the data volume. --- init/docker-openvpn@.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init/docker-openvpn@.service b/init/docker-openvpn@.service index 19f7e46..a5e0b00 100644 --- a/init/docker-openvpn@.service +++ b/init/docker-openvpn@.service @@ -27,7 +27,7 @@ # 5. Verify service start-up with: # `systemctl status docker-openvpn@NAME.service` # `journalctl --unit docker-openvpn@NAME.service` -# +# # For more information, see the systemd manual pages. # [Unit] @@ -64,7 +64,7 @@ ExecStartPre=-/usr/bin/docker pull $IMG ExecStartPre=/bin/sh -c 'test -z "$IP6_PREFIX" && exit 0; sysctl net.ipv6.conf.all.forwarding=1' # Main process -ExecStart=/usr/bin/docker run --rm --privileged -v ${DATA_VOL}:/etc/openvpn:ro --name ${NAME} -p ${PORT} ${IMG} ovpn_run $ARGS +ExecStart=/usr/bin/docker run --rm --privileged -v ${DATA_VOL}:/etc/openvpn --name ${NAME} -p ${PORT} ${IMG} ovpn_run $ARGS # IPv6: Add static route for IPv6 after it starts up ExecStartPost=/bin/sh -c 'test -z "${IP6_PREFIX}" && exit 0; sleep 1; ip route replace ${IP6_PREFIX} via $(docker inspect -f "{{ .NetworkSettings.GlobalIPv6Address }}" $NAME ) dev docker0'