From aedcb84f2db091db6ebbb962e26ce9de0e85b009 Mon Sep 17 00:00:00 2001 From: Guillaume-Fourrat <39527431+Guillaume-Fourrat@users.noreply.github.com> Date: Wed, 20 Nov 2019 14:57:49 +0100 Subject: [PATCH] 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. --- .../kubeadm/ubuntu-single-node-vm-ad/setup-bdc-ad.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu-single-node-vm-ad/setup-bdc-ad.sh b/samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu-single-node-vm-ad/setup-bdc-ad.sh index 79666407..b133604a 100644 --- a/samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu-single-node-vm-ad/setup-bdc-ad.sh +++ b/samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu-single-node-vm-ad/setup-bdc-ad.sh @@ -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