Commit fcfed739 authored by Harry Zhang's avatar Harry Zhang

Deal with unsupported os distro

parent 22ab92bd
...@@ -128,6 +128,10 @@ start_k8s(){ ...@@ -128,6 +128,10 @@ start_k8s(){
ifconfig docker0 down ifconfig docker0 down
apt-get install bridge-utils && brctl delbr docker0 && service docker restart apt-get install bridge-utils && brctl delbr docker0 && service docker restart
;; ;;
*)
echo "Unsupported operations system $lsb_dist"
exit 1
;;
esac esac
# sleep a little bit # sleep a little bit
......
...@@ -130,6 +130,10 @@ start_k8s() { ...@@ -130,6 +130,10 @@ start_k8s() {
ifconfig docker0 down ifconfig docker0 down
apt-get install bridge-utils && brctl delbr docker0 && service docker restart apt-get install bridge-utils && brctl delbr docker0 && service docker restart
;; ;;
*)
echo "Unsupported operations system $lsb_dist"
exit 1
;;
esac esac
# sleep a little bit # sleep a little bit
......
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