~cpe-sa/sademos/16.04

« back to all changes in this revision

Viewing changes to SDN/project_calico/01-deploy.sh

  • Committer: Scott Croft
  • Date: 2016-04-12 21:42:06 UTC
  • Revision ID: scott@canonical.com-20160412214206-39n11bjdehyay6of
Changed logic in detecting existence of models in juju for 01-deploy.sh scripts

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
set -eaux
5
5
 
6
 
if [ `juju list-models|grep calico` ]; then
 
6
juju switch admin
 
7
 
 
8
model=`juju list-models|awk '{print $1}'|grep calico`
 
9
 
 
10
if [ ${model} = "calico" ]; then
7
11
     juju switch calico
8
12
     juju deploy calico.yaml
9
13
else