ovpn_run: Fix sysctl IPv6 forwarding write

* I'm not sure if this ever worked without the `-w` flag.  Perhaps in an
  old version of sysctl?
This commit is contained in:
Kyle Manna 2015-12-29 13:33:55 -08:00
parent e50f4dcc23
commit e7d0d4ea0e

View File

@ -55,8 +55,8 @@ if [ $? = 0 ]; then
# If this fails, ensure the docker container is run with --privileged
# Could be side stepped with `ip netns` madness to drop privileged flag
sysctl net.ipv6.conf.default.forwarding=1 || echo "Failed to enable IPv6 Forwarding default"
sysctl net.ipv6.conf.all.forwarding=1 || echo "Failed to enable IPv6 Forwarding"
sysctl -w net.ipv6.conf.default.forwarding=1 || echo "Failed to enable IPv6 Forwarding default"
sysctl -w net.ipv6.conf.all.forwarding=1 || echo "Failed to enable IPv6 Forwarding"
fi
if [ "$#" -gt 0 ]; then