~frankban/charms/oneiric/buildbot-slave/add-repositories

« back to all changes in this revision

Viewing changes to hooks/buildbot-relation-changed

  • Committer: Gary Poster
  • Date: 2012-01-30 19:09:50 UTC
  • Revision ID: gary.poster@canonical.com-20120130190950-hxifzs3r9p09l5jm
add files from lp:~frankban/charms/oneiric/buildbot-slave/initial

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
# This must be renamed to the name of the relation. The goal here is to
 
3
# affect any change needed by relationships being formed, modified, or broken
 
4
# This script should be idempotent.
 
5
juju-log $JUJU_REMOTE_UNIT modified its settings
 
6
 
 
7
BUILDBOT_DIR=`config-get installdir`
 
8
NAME=`config-get name`
 
9
PASSWD=`config-get passwd`
 
10
HOST=`relation-get private-address`
 
11
 
 
12
juju-log "--> create slave"
 
13
buildslave create-slave $BUILDBOT_DIR $HOST $NAME $PASSWD
 
14
juju-log "<-- create slave"
 
15
 
 
16
juju-log "--> start"
 
17
buildslave start $BUILDBOT_DIR
 
18
juju-log "<-- start"