~johnsca/charms/precise/thinkup/charm-proof

« back to all changes in this revision

Viewing changes to hooks/db-relation-changed

  • Committer: Nathan Osman
  • Date: 2011-11-21 23:49:00 UTC
  • Revision ID: admin@quickmediasolutions.com-20111121234900-rbj9li56m3iyshk4
Fixed quoting issue with db-relation-changed hook and added modification of document root variable in config.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
# Update the data in the configuration file
25
25
juju-log "Updating configuration file"
26
26
update_thinkup_config <<EOD
27
 
db_host=$DB_HOST
28
 
db_user=$DB_USER
29
 
db_password=$DB_PASS
30
 
db_name=$DATABASE
 
27
db_host='$DB_HOST'
 
28
db_user='$DB_USER'
 
29
db_password='$DB_PASS'
 
30
db_name='$DATABASE'
31
31
EOD
32
32
 
33
33
# Execute the SQL that creates the tables