Commit dc137a47 authored by Eric Tune's avatar Eric Tune

Merge pull request #7209 from you-n-g/master

change the current dir to the config dir
parents 95bc9662 f181e98e
...@@ -21,6 +21,12 @@ ...@@ -21,6 +21,12 @@
set -e set -e
# get the full path of configure dir and set $PWD to it.
CONFIG_DIR=`dirname "$0"`
CONFIG_DIR=`cd "$CONFIG_DIR"; pwd`
cd $CONFIG_DIR
#clean all init/init.d/configs #clean all init/init.d/configs
function do_backup_clean() { function do_backup_clean() {
#backup all config files #backup all config files
...@@ -92,7 +98,7 @@ function cpMinion(){ ...@@ -92,7 +98,7 @@ function cpMinion(){
# copy default configs # copy default configs
cp work/default_scripts/etcd /etc/default/ cp work/default_scripts/etcd /etc/default/
cp work/default_scripts/flanneld /etc/default/ cp work/default_scripts/flanneld /etc/default/
cp work/default_scripts/kube-proxy /etc/default cp work/default_scripts/kube-proxy /etc/default/
cp work/default_scripts/kubelet /etc/default/ cp work/default_scripts/kubelet /etc/default/
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment