Commit 9a8eef33 authored by Zach Loafman's avatar Zach Loafman

Merge pull request #12700 from bjlee72/util-sudo-patch

Fix the problem that the script cannot remove existing installations …
parents 0a829150 cdc25677
...@@ -442,7 +442,7 @@ function kube-down { ...@@ -442,7 +442,7 @@ function kube-down {
echo "Cleaning on node ${i#*@}" echo "Cleaning on node ${i#*@}"
ssh -t $i 'pgrep etcd && sudo -p "[sudo] password for cleaning etcd data: " service etcd stop && sudo rm -rf /infra*' ssh -t $i 'pgrep etcd && sudo -p "[sudo] password for cleaning etcd data: " service etcd stop && sudo rm -rf /infra*'
# Delete the files in order to generate a clean environment, so you can change each node's role at next deployment. # Delete the files in order to generate a clean environment, so you can change each node's role at next deployment.
ssh -t $i 'rm -f /opt/bin/kube* /etc/init/kube* /etc/init.d/kube* /etc/default/kube*; rm -rf ~/kube /var/lib/kubelet' ssh -t $i 'sudo rm -f /opt/bin/kube* /etc/init/kube* /etc/init.d/kube* /etc/default/kube*; sudo rm -rf ~/kube /var/lib/kubelet'
} }
done done
wait wait
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment