From 2e40f85c18b9474a086c9e2deaaf02b261f235d0 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Tue, 19 Mar 2013 13:55:10 +0800 Subject: [PATCH] Runs db sync as heat user. Rewritten-From: d9e0342a7af9c0463301208dfc59ab0a2ce3ac11 --- xenial/debian/heat-engine.postinst.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xenial/debian/heat-engine.postinst.in b/xenial/debian/heat-engine.postinst.in index 141818c2..0b6db676 100644 --- a/xenial/debian/heat-engine.postinst.in +++ b/xenial/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# -- 2.45.2