~charmers/charms/precise/memcached/precise

« back to all changes in this revision

Viewing changes to formulas/wordpress/hooks/website-relation-joined

  • Committer: Francis J. Lacoste
  • Date: 2011-05-27 15:21:34 UTC
  • Revision ID: francis.lacoste@canonical.com-20110527152134-pfpphugrn7ixdm0m
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=80 hostname=`hostname -s`