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

change the current dir to the config dir
This commit is contained in:
Eric Tune 2015-05-01 08:29:49 -07:00
commit dc137a47eb

View File

@ -21,6 +21,12 @@
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
function do_backup_clean() {
#backup all config files
@ -92,7 +98,7 @@ function cpMinion(){
# copy default configs
cp work/default_scripts/etcd /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/
}