~gandelman-a/pyjuju/mysql

« back to all changes in this revision

Viewing changes to formulas/memcached/hooks/cache-relation-joined

  • Committer: Francis J. Lacoste
  • Date: 2011-05-27 15:21:22 UTC
  • Revision ID: francis.lacoste@canonical.com-20110527152122-l8akt2g34hwz1zpj
Split out from principia-tools.

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 port=11211