Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/openebs/maya
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekpandey14 committed Mar 28, 2017
2 parents 7a6ce00 + c0a049f commit 7b0ec80
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
5 changes: 5 additions & 0 deletions scripts/install_consul.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ CONSUL_VERSION="0.7.0"
CURDIR=`pwd`


if [[ $(which consul >/dev/null && consul version | head -n 1 | cut -d ' ' -f 2 | sed 's/dev//' | cut -d "'" -f 2) == "v$CONSUL_VERSION" ]]; then
echo "Consul v$CONSUL_VERSION already installed; Skipping"
exit
fi

# Remove if already present
# NOTE: this is install only script
echo "Cleaning old Consul installation if any"
Expand Down
10 changes: 5 additions & 5 deletions scripts/install_mayaserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

set -e

MAPI_VERSION="0.2-RC1"
MAPI_VERSION="0.2-RC2"
CURDIR=`pwd`

#if [[ $(which m-apiserver >/dev/null && m-apiserver version | head -n 1 | cut -d ' ' -f 2 | sed 's/dev//' | cut -d "'" -f 2) == "$MAYA_VERSION" ]]; then
#echo "Maya-API Server v$MAYA_VERSION already installed; Skipping"
# exit
#fi
if [[ $(which m-apiserver >/dev/null && m-apiserver version | head -n 1 | cut -d ' ' -f 2 | sed 's/dev//' | cut -d "'" -f 2) == "$MAPI_VERSION" ]]; then
echo "Maya-API Server v$MAPI_VERSION already installed; Skipping"
exit
fi

cd /tmp/

Expand Down
5 changes: 5 additions & 0 deletions scripts/install_nomad.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ set -e
NOMAD_VERSION="0.5.0"
CURDIR=`pwd`

if [[ $(which nomad >/dev/null && nomad version | head -n 1 | cut -d ' ' -f 2 | sed 's/dev//' | cut -d "'" -f 2) == "v$NOMAD_VERSION" ]]; then
echo "Nomad v$NOMAD_VERSION already installed; Skipping"
exit
fi

# Remove if already present
# NOTE: this is install only script
echo "Cleaning old Nomad installation if any"
Expand Down

0 comments on commit 7b0ec80

Please sign in to comment.