~james-page/charms/trusty/glance/lp1456379

« back to all changes in this revision

Viewing changes to hooks/glance-relations

  • Committer: Adam Gandelman
  • Date: 2012-06-19 23:09:07 UTC
  • mto: (20.3.1 glance)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: adamg@canonical.com-20120619230907-zh1y58ajgl82qwsu
Set sql_connection in glance-api.conf.
Add copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
  juju-log "glance: db_changed: Configuring registry for access to $GLANCE_DB@$DB_HOST"
54
54
  glance_ctl all stop
55
55
  set_or_update sql_connection "mysql://$DB_USER:$DB_PASSWORD@$DB_HOST/$GLANCE_DB" registry
 
56
  set_or_update sql_connection "mysql://$DB_USER:$DB_PASSWORD@$DB_HOST/$GLANCE_DB" api
56
57
  # Set the db version to 0 if its not under version control. We assume that any existing
57
58
  # database we are being related to was created WITH version control.
58
59
  if ! glance-manage db_version ; then