Skip to content

Commit

Permalink
script to upgrade parts or all
Browse files Browse the repository at this point in the history
  • Loading branch information
cs-pvh committed May 9, 2017
1 parent 80b3e7f commit 09f8ec5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@

SERVICE=$1

if [ "$SERVICE" == "agent-builder" ]; then
if [ "$SERVICE" == "" ]; then
echo "Usage : $0 [<SERVICE>/all/coscale/data]"
elif [ "$SERVICE" == "agent-builder" ]; then
echo "upgrading agent-builder"
./stop.sh haproxy && ./stop.sh api && ./run.sh api && ./connect.sh api /opt/coscale/agent-builder/update.sh && ./stop.sh api && ./run.sh api && ./run.sh haproxy
elif [ "$SERVICE" == "all" ]; then
./stop.sh && ./run.sh
elif [ "$SERVICE" == "coscale" ]; then
./stop.sh coscale && ./run.sh coscale
elif [ "$SERVICE" == "data" ]; then
./stop.sh data && ./run.sh data
else
echo "upgrading service"
./stop.sh $1 && ./run.sh $1
fi


0 comments on commit 09f8ec5

Please sign in to comment.