Deal with unsupported os distro

This commit is contained in:
Harry Zhang 2015-10-08 16:39:14 +08:00
parent 22ab92bd16
commit fcfed739b9
2 changed files with 8 additions and 0 deletions

View File

@ -128,6 +128,10 @@ start_k8s(){
ifconfig docker0 down
apt-get install bridge-utils && brctl delbr docker0 && service docker restart
;;
*)
echo "Unsupported operations system $lsb_dist"
exit 1
;;
esac
# sleep a little bit

View File

@ -130,6 +130,10 @@ start_k8s() {
ifconfig docker0 down
apt-get install bridge-utils && brctl delbr docker0 && service docker restart
;;
*)
echo "Unsupported operations system $lsb_dist"
exit 1
;;
esac
# sleep a little bit