~marcoceppi/charms/trusty/cassandra-stress/trunk

« back to all changes in this revision

Viewing changes to hooks/database-relation-changed

  • Committer: Marco Ceppi
  • Date: 2015-07-16 15:17:13 UTC
  • Revision ID: marco@ceppi.net-20150716151713-is5x70qm9pi98e32
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
set -eux
 
4
 
 
5
if [ -z "$(relation-get username)" ]; then
 
6
  status-set waiting "Waiting to recieve creds from ${JUJU_REMOTE_UNIT%%/*}"
 
7
  exit 0
 
8
fi
 
9
 
 
10
status-set active "Ready to stress ${JUJU_REMOTE_UNIT%%/*}"