use >> (append) instead of > for sysctl.conf updates

I'm afraid current script would clobber existing /etc/sysctl.conf configuration
AND each of the 3 changes clobbering would clobber the previous one(s), only the last "net.ipv6.conf.lo.disable_ipv6=1" would be persisted in sysctl.
This commit is contained in:
Guillaume-Fourrat
2019-11-20 14:57:49 +01:00
committed by GitHub
parent 9f8b0f1e81
commit aedcb84f2d
@@ -226,9 +226,9 @@ sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1
echo net.ipv6.conf.all.disable_ipv6=1 > /etc/sysctl.conf
echo net.ipv6.conf.default.disable_ipv6=1 > /etc/sysctl.conf
echo net.ipv6.conf.lo.disable_ipv6=1 > /etc/sysctl.conf
echo net.ipv6.conf.all.disable_ipv6=1 >> /etc/sysctl.conf
echo net.ipv6.conf.default.disable_ipv6=1 >> /etc/sysctl.conf
echo net.ipv6.conf.lo.disable_ipv6=1 >> /etc/sysctl.conf
sysctl net.bridge.bridge-nf-call-iptables=1