~landscape/charms/trusty/glance-apt/trunk

« back to all changes in this revision

Viewing changes to hooks/glance-relations

  • Committer: Adam Gandelman
  • Date: 2013-01-30 23:14:37 UTC
  • mfrom: (29.1.1 glance)
  • Revision ID: adamg@canonical.com-20130130231437-03ljfh5vzhrr66bn
Ensure glance-api.conf's sql_conn is updated for all releases > essex.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
 
74
74
  set_or_update sql_connection "mysql://$db_user:$db_password@$db_host/$glance_db" registry
75
75
 
76
 
  # folsom requires a db connection setting in glance-api.conf, as well.
77
 
  [[ "$rel" == "folsom" ]] &&
 
76
  # since folsom, a db connection setting in glance-api.conf is required.
 
77
  [[ "$rel" != "essex" ]] &&
78
78
    set_or_update sql_connection "mysql://$db_user:$db_password@$db_host/$glance_db" api
79
79
 
80
80
  if [[ "$rel" == "essex" ]] ; then