diff --git a/copyright b/copyright new file mode 100644 index 00000000..a6ddcf83 --- /dev/null +++ b/copyright @@ -0,0 +1,17 @@ +Format: http://dep.debian.net/deps/dep5/ + +Files: * +Copyright: Copyright 2012, Canonical Ltd., All Rights Reserved. +License: GPL-3 + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . diff --git a/hooks/glance-relations b/hooks/glance-relations index 1895a1f1..70c3f6a4 100755 --- a/hooks/glance-relations +++ b/hooks/glance-relations @@ -53,6 +53,7 @@ function db_changed { juju-log "glance: db_changed: Configuring registry for access to $GLANCE_DB@$DB_HOST" glance_ctl all stop set_or_update sql_connection "mysql://$DB_USER:$DB_PASSWORD@$DB_HOST/$GLANCE_DB" registry + set_or_update sql_connection "mysql://$DB_USER:$DB_PASSWORD@$DB_HOST/$GLANCE_DB" api # Set the db version to 0 if its not under version control. We assume that any existing # database we are being related to was created WITH version control. if ! glance-manage db_version ; then