Install heat-manage into /usr/local/bin

Instead of specifying the full path to heat-manage, install a
symlink to the command into /usr/local/bin and just use the command name
when we call it.  This allows a packaged version to get used if the
package install type was chosen.

Change-Id: I104cd6bea8bb5ead126f20fbdabede6488f54aa3
This commit is contained in:
James Slagle
2014-01-20 15:55:09 -05:00
parent 00f1bbb246
commit e0c4027f37
4 changed files with 5 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ os-db-create glance glance $db_pass
run_db_sync && $venvs/glance/bin/glance-manage db_sync
os-db-create heat heat $db_pass
run_db_sync && $venvs/heat/bin/heat-manage db_sync
run_db_sync && heat-manage db_sync
os-db-create ovs_neutron neutron $db_pass

View File

@@ -4,4 +4,6 @@ os-svc-daemon heat-api heat heat-api
os-svc-daemon heat-api-cfn heat heat-api-cfn
os-svc-daemon heat-api-cloudwatch heat heat-api-cloudwatch
ln -s /opt/stack/venvs/heat/bin/heat-manage /usr/local/bin/heat-manage
cp /opt/stack/heat/etc/heat/api-paste.ini /etc/heat/api-paste.ini

View File

@@ -1,6 +1,6 @@
#!/bin/bash
/opt/stack/venvs/heat/bin/heat-manage db_sync
heat-manage db_sync
os-svc-enable -n heat-api
os-svc-enable -n heat-api-cfn

View File

@@ -2,5 +2,5 @@
# If https://bugs.launchpad.net/heat/+bug/1239377 is ever fixed we can
# configure heat to purge automatically and remove this.
cat <<EOF > /etc/cron.d/heat
30 * * * * heat /opt/stack/venvs/heat/bin/heat-manage purge_deleted 1
30 * * * * heat heat-manage purge_deleted 1
EOF