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
This commit is contained in:
Suraj Deshmukh
2016-06-30 12:06:01 +05:30
parent 89ea52c058
commit 7230d84e59
@@ -90,10 +90,10 @@ detect_lsb() {
lsb_dist="$(echo ${lsb_dist} | tr '[:upper:]' '[:lower:]')" lsb_dist="$(echo ${lsb_dist} | tr '[:upper:]' '[:lower:]')"
case "${lsb_dist}" in 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 exit 1
;; ;;
esac esac
@@ -174,7 +174,7 @@ start_k8s(){
ifconfig docker0 down ifconfig docker0 down
yum -y -q install bridge-utils && brctl delbr docker0 && service docker restart yum -y -q install bridge-utils && brctl delbr docker0 && service docker restart
;; ;;
centos) centos|fedora)
DOCKER_CONF="/etc/sysconfig/docker" DOCKER_CONF="/etc/sysconfig/docker"
sed -i "/^OPTIONS=/ s|\( --mtu=.*\)\?'$| --mtu=${FLANNEL_MTU} --bip=${FLANNEL_SUBNET}'|" ${DOCKER_CONF} sed -i "/^OPTIONS=/ s|\( --mtu=.*\)\?'$| --mtu=${FLANNEL_MTU} --bip=${FLANNEL_SUBNET}'|" ${DOCKER_CONF}
if ! command_exists ifconfig; then if ! command_exists ifconfig; then