mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
reworked equality test to be sh-compatible
running this script as sudo ./setup-k8s-prereqs.sh would hit "./setup-k8s-prereqs.sh: 22: [: bionic: unexpected operator" explanation : https://stackoverflow.com/a/3411105 since script is "marketed" as sh, use "=" instead of "==" which works both under sh and bash
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ apt-get install -y kubelet=$KUBE_DPKG_VERSION kubeadm=$KUBE_DPKG_VERSION kubectl
|
||||
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
|
||||
|
||||
. /etc/os-release
|
||||
if [ "$UBUNTU_CODENAME" == "bionic" ]; then
|
||||
if [ "$UBUNTU_CODENAME" = "bionic" ]; then
|
||||
modprobe br_netfilter
|
||||
fi
|
||||
sysctl net.bridge.bridge-nf-call-iptables=1
|
||||
|
||||
Reference in New Issue
Block a user