Skip to content

Commit afd2588

Browse files
authored
Adding sudo for swapoff
1 parent d286731 commit afd2588

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/features/azure-arc/deployment/kubeadm/ubuntu-single-node-vm/setup-controller.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ echo "Starting to setup pre-requisites for kubernetes..."
136136
#
137137
echo $(hostname -i) $(hostname) >> sudo tee -a /etc/hosts
138138

139-
swapoff -a
139+
sudo swapoff -a
140140
sudo sed -i '/swap/s/^\(.*\)$/#\1/g' /etc/fstab
141141

142142
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -

0 commit comments

Comments
 (0)