~sinzui/juju-ci-tools/repository

« back to all changes in this revision

Viewing changes to charms/mysql/hooks/munin-relation-joined

  • Committer: seman.said at canonical
  • Date: 2016-03-25 02:02:02 UTC
  • mto: This revision was merged to the branch mainline in revision 35.
  • Revision ID: seman.said@canonical.com-20160325020202-6fdn71nhxz9gg1a4
Added charms that supports series in metadata.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
IP=`ifconfig  | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'|head -n 1`
 
3
 
 
4
echo setting ip to $IP
 
5
 
 
6
relation-set ip=$IP