Added fedora in docker-multinode master script

Fedora was considered in the initialization scripts but
when actual checks were done fedora was missing so
added fedora at required positions.

Fixes #758
pull/759/head
Suraj Deshmukh 2016-06-30 12:06:01 +05:30
parent 89ea52c058
commit 7230d84e59
1 changed files with 3 additions and 3 deletions

View File

@ -90,10 +90,10 @@ detect_lsb() {
lsb_dist="$(echo ${lsb_dist} | tr '[:upper:]' '[:lower:]')"
case "${lsb_dist}" in
amzn|centos|debian|ubuntu)
amzn|centos|debian|ubuntu|fedora)
;;
*)
echo "Error: We currently only support ubuntu|debian|amzn|centos."
echo "Error: We currently only support ubuntu|debian|amzn|centos|fedora."
exit 1
;;
esac
@ -174,7 +174,7 @@ start_k8s(){
ifconfig docker0 down
yum -y -q install bridge-utils && brctl delbr docker0 && service docker restart
;;
centos)
centos|fedora)
DOCKER_CONF="/etc/sysconfig/docker"
sed -i "/^OPTIONS=/ s|\( --mtu=.*\)\?'$| --mtu=${FLANNEL_MTU} --bip=${FLANNEL_SUBNET}'|" ${DOCKER_CONF}
if ! command_exists ifconfig; then