Skip to content

Commit 3c53692

Browse files
committed
Removed sudo from SH script. Added to instructions.
1 parent c677799 commit 3c53692

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu/setup-k8s-prereqs.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
# Setup the kubernetes preprequisites
44
#
5-
sudo -i
65
echo $(hostname -i) $(hostname) >> /etc/hosts
7-
sed -i "/ swap / s/^/#/" /etc/fstab
8-
swapoff -a
6+
sudo sed -i "/ swap / s/^/#/" /etc/fstab
7+
sudo swapoff -a
98
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
109
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
1110
deb http://apt.kubernetes.io/ kubernetes-xenial main

0 commit comments

Comments
 (0)