~matsubara/charms/precise/oil-qmaster/add-nrpe-support

« back to all changes in this revision

Viewing changes to hooks/website-relation-joined

  • Committer: Ryan Harper
  • Date: 2014-01-10 14:55:13 UTC
  • Revision ID: ryan.harper@ubuntu.com-20140110145513-jy0c0u62aj88w61o
Update charm to use python instead.  Added in oil-ci private ppa configuration.  Requires updated charm-helper/fetch to support installing https private ppa.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
juju-log $JUJU_REMOTE_UNIT joined
3
 
 
4
 
# jenkins settings
5
 
JENKINS_HOST=$(relation-get hostname)
6
 
JENKINS_PORT=$(relation-get port)
7
 
JENKINS_URL="http://${JENKINS_HOST}:${JENKINS_PORT}"
8
 
juju-log $0 jenkins_url=${JENKINS_URL}
9
 
 
10
 
# update config
11
 
CONFIG=/etc/oil-ci/oil-ci.conf
12
 
juju-log $0 updating $CONFIG
13
 
sed -i \
14
 
  -e  "s,^jenkins_url/*=.*,jenkins_url = ${JENKINS_URL}," \
15
 
  ${CONFIG}  
16
 
 
17
 
juju-log $0 exec'ing ./hooks/start
18
 
exec ./hooks/start