]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Issue #52: Fix error in db-setup script
authorZane Bitter <zbitter@redhat.com>
Fri, 13 Apr 2012 10:10:10 +0000 (12:10 +0200)
committerZane Bitter <zbitter@redhat.com>
Fri, 13 Apr 2012 10:10:35 +0000 (12:10 +0200)
Signed-off-by: Zane Bitter <zbitter@redhat.com>
bin/heat-db-setup-fedora

index 764c077c83eea4d5c03175d3165801f01c2d624a..8d2eff95d51fe62302de1e75fe0e3a7ab9fb4c1b 100755 (executable)
@@ -215,13 +215,13 @@ if [ "${MYSQL_HEAT_PW}" != "${MYSQL_HEAT_PW_DEFAULT}" ] ; then
        sed -i -e "s/mysql:\/\/heat:\(.*\)@/mysql:\/\/heat:${MYSQL_HEAT_PW}@/" ${HEAT_CONFIG}
 fi
 
-#create the schema using sqlalchemy-migrate
-#if [ $1='rpm' ];
-#then
-#  pushd /usr/lib/python2.7/site-packages/heat/db/sqlalchemy
-#else
+# Create the schema using sqlalchemy-migrate
+if [ "$1" = "rpm" ]
+then
+  pushd /usr/lib/python2.7/site-packages/heat/db/sqlalchemy
+else
   pushd /usr/lib/python2.7/site-packages/heat-0.0.1-py2.7.egg/heat/db/sqlalchemy/
-#fi
+fi
 
 python migrate_repo/manage.py version_control mysql://heat:heat@localhost/heat migrate_repo
 python manage.py upgrade