From 5bde24bfc5d8ba8d3f35e1b94c81ba3c19e3bd17 Mon Sep 17 00:00:00 2001 From: Joshua Hesketh Date: Mon, 12 Aug 2013 23:18:36 +1000 Subject: [PATCH] update script for better log formatting --- .../gate_real_db_upgrade/nova_mysql_migrations.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/turbo_hipster/task_plugins/gate_real_db_upgrade/nova_mysql_migrations.sh b/turbo_hipster/task_plugins/gate_real_db_upgrade/nova_mysql_migrations.sh index 3399faf..e8a6aee 100755 --- a/turbo_hipster/task_plugins/gate_real_db_upgrade/nova_mysql_migrations.sh +++ b/turbo_hipster/task_plugins/gate_real_db_upgrade/nova_mysql_migrations.sh @@ -53,21 +53,21 @@ log_config = $7 EOF find $3 -type f -name "*.pyc" -exec rm -f {} \; - set -x + echo "***** Start DB upgrade to state of $1 *****" nova_manage="$3/bin/nova-manage" if [ -e $nova_manage ] then - echo "***** Start DB upgrade to state of $1 *****" + set -x python $nova_manage --config-file $2/nova-$1.conf db sync else python setup.py -q clean python setup.py -q develop python setup.py -q install - echo "***** Start DB upgrade to state of $1 *****" + set -x nova-manage --config-file $2/nova-$1.conf db sync fi - echo "***** Finished DB upgrade to state of $1 *****" set +x + echo "***** Finished DB upgrade to state of $1 *****" } echo "To execute this script manually, run this:"