update script for better log formatting

This commit is contained in:
Joshua Hesketh 2013-08-12 23:18:36 +10:00
parent ded9d9f6a7
commit 5bde24bfc5

View File

@ -53,21 +53,21 @@ log_config = $7
EOF EOF
find $3 -type f -name "*.pyc" -exec rm -f {} \; 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" nova_manage="$3/bin/nova-manage"
if [ -e $nova_manage ] if [ -e $nova_manage ]
then then
echo "***** Start DB upgrade to state of $1 *****" set -x
python $nova_manage --config-file $2/nova-$1.conf db sync python $nova_manage --config-file $2/nova-$1.conf db sync
else else
python setup.py -q clean python setup.py -q clean
python setup.py -q develop python setup.py -q develop
python setup.py -q install 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 nova-manage --config-file $2/nova-$1.conf db sync
fi fi
echo "***** Finished DB upgrade to state of $1 *****"
set +x set +x
echo "***** Finished DB upgrade to state of $1 *****"
} }
echo "To execute this script manually, run this:" echo "To execute this script manually, run this:"