minor fix
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/8b5ced6a Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/8b5ced6a Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/8b5ced6a Branch: refs/heads/master Commit: 8b5ced6ad51324ef33abf2469468b6650c6438fc Parents: fc9f514 Author: Anuradha Hegde <[email protected]> Authored: Fri Jan 8 22:35:16 2016 +0000 Committer: Anuradha Hegde <[email protected]> Committed: Fri Jan 8 22:35:16 2016 +0000 ---------------------------------------------------------------------- install/installer/cloud_cli_setup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/8b5ced6a/install/installer/cloud_cli_setup ---------------------------------------------------------------------- diff --git a/install/installer/cloud_cli_setup b/install/installer/cloud_cli_setup index 725418f..980c61e 100755 --- a/install/installer/cloud_cli_setup +++ b/install/installer/cloud_cli_setup @@ -36,8 +36,9 @@ fi ###### Setting up CLI for AWS as sudo id +if [[ ! -z $AWS_CLOUD ]]; then ###### Check for existence of aws -if [[ ! -d /usr/local/aws ]]; then + if [[ ! -d /usr/local/aws ]]; then cd $HOME curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip" unzip $HOME/awscli-bundle.zip @@ -51,10 +52,9 @@ if [[ ! -d /usr/local/aws ]]; then $TRAF_PDSH "sudo rm -rf $HOME/awscli-bundle" rm -f $HOME/awscli-bundle.zip -fi + fi ###### Check for existence of .aws for trafodion id -if [[ ! -z $AWS_CLOUD ]]; then ###### Check if aws configuration file exist for Trafodion Id AWSCONFIG_DIR=`sudo su $TRAF_USER --login --command "ls -altr | grep -w ".aws" | wc -l" ` if [[ $AWSCONFIG_DIR == 0 ]]; then
