mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
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:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user