[Openstack-devel] [PATCH] Don't setup db if isn't requested
Zang MingJie
zealot0630 at gmail.com
Mon Dec 2 14:26:49 UTC 2013
Signed-off-by: Zang MingJie <zealot0630 at gmail.com>
---
debian/neutron-common.postinst.in | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/debian/neutron-common.postinst.in b/debian/neutron-common.postinst.in
index 58f2196..4e0d9f2 100644
--- a/debian/neutron-common.postinst.in
+++ b/debian/neutron-common.postinst.in
@@ -78,11 +78,14 @@ if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ] ; then
# Set the keystone_authtoken directive
pkgos_write_admin_creds ${N_CONF} keystone_authtoken neutron
- # Set the sql_connection directive
- pkgos_dbc_postinst --suite neutron ${N_CONF} database connection neutron $@
+ db_get neutron/configure_db
+ if [ "$RET" = "true" ] ; then
+ # Set the sql_connection directive
+ pkgos_dbc_postinst --suite neutron ${N_CONF} database connection neutron $@
- # Migrating to latest release of the db
- neutron-db-manage --config-file /etc/neutron/neutron.conf upgrade head
+ # Migrating to latest release of the db
+ neutron-db-manage --config-file /etc/neutron/neutron.conf upgrade head
+ fi
# Maintain the OVS config
if [ ! -e ${OVS_CONF} ] ; then
--
1.8.4.2
More information about the Openstack-devel
mailing list