From: Thomas Goirand Date: Tue, 19 Mar 2013 05:55:10 +0000 (+0800) Subject: Runs db sync as heat user. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=93633987df3c1aed28d10589dcf2b40f6bf5676c;p=openstack-build%2Fheat-build.git Runs db sync as heat user. Rewritten-From: d9e0342a7af9c0463301208dfc59ab0a2ce3ac11 --- diff --git a/trusty/debian/heat-engine.postinst.in b/trusty/debian/heat-engine.postinst.in index 141818c2..0b6db676 100644 --- a/trusty/debian/heat-engine.postinst.in +++ b/trusty/debian/heat-engine.postinst.in @@ -14,8 +14,9 @@ if [ "$1" = "configure" ] ; then pkgos_write_new_conf heat heat-engine.conf pkgos_dbc_postinst ${CONF} DEFAULT sql_connection heat $@ - python -m heat.db.sqlalchemy.manage version_control - python -m heat.db.sqlalchemy.manage upgrade + # This is the equivalent of db-sync: + su heat -c "python -m heat.db.sqlalchemy.manage version_control" + su heat -c "python -m heat.db.sqlalchemy.manage upgrade" fi #DEBHELPER#