From 2d32a114e8ce3f42226c73ccabdbea7f5381826b Mon Sep 17 00:00:00 2001 From: Artem Tiumentcev Date: Fri, 2 Dec 2016 19:20:01 +0300 Subject: [PATCH] Fixed: Wrong place for line Change-Id: I534d94c19c64d328ef969362c925c7f4e29226a2 --- .../package/Resources/scripts/master-kube-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kubernetes/KubernetesCluster/package/Resources/scripts/master-kube-setup.sh b/Kubernetes/KubernetesCluster/package/Resources/scripts/master-kube-setup.sh index 90af7d8..31c5e8e 100644 --- a/Kubernetes/KubernetesCluster/package/Resources/scripts/master-kube-setup.sh +++ b/Kubernetes/KubernetesCluster/package/Resources/scripts/master-kube-setup.sh @@ -12,7 +12,6 @@ if [[ $(which systemctl) ]]; then systemctl stop kube* sed -i.bak "s/%%MASTER_IP%%/$2/g" environ/kube-config sed -i.bak "s/%%MASTER_IP%%/$2/g" environ/apiserver - sed -i.bak "s/%%MASTER_IP%%/$2/g" default_scripts/kube-apiserver cp -f environ/apiserver /etc/kubernetes/apiserver cp -f environ/kube-config /etc/kubernetes/config @@ -42,6 +41,7 @@ else #chmod -x /etc/init.d/kube-controller-manager sed -i.bak "s/%%MASTER_IP%%/$2/g" default_scripts/kube-scheduler + sed -i.bak "s/%%MASTER_IP%%/$2/g" default_scripts/kube-apiserver cp -f default_scripts/kube-apiserver /etc/default/ cp -f default_scripts/kube-scheduler /etc/default/