~charmers/charms/trusty/shoutcast/trunk

« back to all changes in this revision

Viewing changes to hooks/screlay-relation-changed

  • Committer: Charles Butler
  • Date: 2014-09-25 06:27:11 UTC
  • Revision ID: chuck@dasroot.net-20140925062711-wbbo073x3c4ixsw7
Adds relay support  through relations of scsource and screlay.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
hostname=`relation-get hostname`
 
4
port=`relation-get port`
 
5
 
 
6
# stack the values in a cache file
 
7
echo $hostname > $CHARM_DIR/.relay
 
8
echo $port >> $CHARM_DIR/.relay