Fix docker options setting in CentOS

This commit is contained in:
higashi
2016-04-05 23:11:22 +09:00
parent d956b20b4d
commit 2df9177e9b
2 changed files with 2 additions and 2 deletions
@@ -176,7 +176,7 @@ start_k8s(){
;; ;;
centos) centos)
DOCKER_CONF="/etc/sysconfig/docker" DOCKER_CONF="/etc/sysconfig/docker"
echo "OPTIONS=\"\$OPTIONS --mtu=${FLANNEL_MTU} --bip=${FLANNEL_SUBNET}\"" | tee -a ${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
yum -y -q install net-tools yum -y -q install net-tools
fi fi
@@ -149,7 +149,7 @@ start_k8s() {
case "${lsb_dist}" in case "${lsb_dist}" in
centos) centos)
DOCKER_CONF="/etc/sysconfig/docker" DOCKER_CONF="/etc/sysconfig/docker"
echo "OPTIONS=\"\$OPTIONS --mtu=${FLANNEL_MTU} --bip=${FLANNEL_SUBNET}\"" | tee -a ${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
yum -y -q install net-tools yum -y -q install net-tools
fi fi