Skip to content

Commit aedcb84

Browse files
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.
1 parent 9f8b0f1 commit aedcb84

File tree

1 file changed

+3
-3
lines changed
  • samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu-single-node-vm-ad

1 file changed

+3
-3
lines changed

samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu-single-node-vm-ad/setup-bdc-ad.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@ sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
226226
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
227227
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1
228228

229-
echo net.ipv6.conf.all.disable_ipv6=1 > /etc/sysctl.conf
230-
echo net.ipv6.conf.default.disable_ipv6=1 > /etc/sysctl.conf
231-
echo net.ipv6.conf.lo.disable_ipv6=1 > /etc/sysctl.conf
229+
echo net.ipv6.conf.all.disable_ipv6=1 >> /etc/sysctl.conf
230+
echo net.ipv6.conf.default.disable_ipv6=1 >> /etc/sysctl.conf
231+
echo net.ipv6.conf.lo.disable_ipv6=1 >> /etc/sysctl.conf
232232

233233

234234
sysctl net.bridge.bridge-nf-call-iptables=1

0 commit comments

Comments
 (0)