~jorge/charms/precise/lamp/readme-fixes

« back to all changes in this revision

Viewing changes to hooks/shared-db-relation-joined

  • Committer: Victor Palau
  • Date: 2012-10-02 13:23:57 UTC
  • Revision ID: vtuson@gmail.com-20121002132357-3zi9hx2fgnjoag33
changed the charm to use mysql-shared

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
juju-log "lamp - shared-db: Relation Joined"
 
4
#set database and user name
 
5
myuser=`config-get database-user`
 
6
mydatabase=`config-get website-database`
 
7
myaddress=`unit-get private-address`
 
8
relation-set username=$myuser hostname=$myaddress database=$mydatabase
 
9