@@ -11,7 +11,7 @@ function echo_color {
1111
1212THIS_DIR=" $( cd $( dirname $0 ) ; pwd) " # absolute path
1313CONTRIB_DIR=$( dirname " $THIS_DIR " )
14- CODE_BASE_DIR=$( dirname " $CONTRIB_DIR /../../ " )
14+ CODE_BASE_DIR=" $CONTRIB_DIR /../controller "
1515
1616# For those upgrading from the pre-containerize branch, they may still have some redundant files
1717# in their code base.
@@ -44,11 +44,6 @@ if [[ `uname -s` =~ Linux ]]; then
4444 fi
4545fi
4646
47- echo_color " Ensuring submodules are cloned and up to date..."
48-
49- # Ensure all submodules are cloned and up to date
50- git submodule init && git submodule update
51-
5247# ################
5348# chef settings #
5449# ################
8378# be guareteed to run inside the deis codebase. Therefore we can't use that opportunity to discover
8479# the path of the codebase on the host machine. Therefore we do it now as this script has to exist
8580# inside the codebase.
86- nodes_dir=" $CONTRIB_DIR /vagrant/nodes"
87- nodes_path_file=" $CONTRIB_DIR /vagrant/.host_nodes_dir"
81+ nodes_dir=" $CODE_BASE_DIR /provider /vagrant/nodes"
82+ nodes_path_file=" $CODE_BASE_DIR /provider /vagrant/.host_nodes_dir"
8883echo $nodes_dir > $nodes_path_file
8984
9085# Add the Controller's public SSH key to user's machine. This allows the Controller to
9186# issue vagrant commands on the host machine.
9287echo_color " Ensuring presence of Controller's public key in your ~/.ssh/authorized_keys file..."
93- KEY=$( cat util/ssh_keys/id_rsa_vagrant-deis-controller.pub)
88+ KEY=$( cat $CODE_BASE_DIR /provider/vagrant- util/ssh_keys/id_rsa_vagrant-deis-controller.pub)
9489if [ -z " $( grep " $KEY " ~ /.ssh/authorized_keys ) " ]; then
9590 echo $KEY >> ~ /.ssh/authorized_keys;
9691 echo_color " Key added."
0 commit comments