diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-heat_git.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-heat_git.bb | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-heat_git.bb b/meta-openstack/recipes-devtools/python/python-heat_git.bb index cccaf0a..2cf7ce4 100644 --- a/meta-openstack/recipes-devtools/python/python-heat_git.bb +++ b/meta-openstack/recipes-devtools/python/python-heat_git.bb | |||
| @@ -107,20 +107,18 @@ do_install_append() { | |||
| 107 | } | 107 | } |
| 108 | 108 | ||
| 109 | pkg_postinst_${SRCNAME}-setup () { | 109 | pkg_postinst_${SRCNAME}-setup () { |
| 110 | if [ "x$D" != "x" ]; then | 110 | if [ -z "$D" ]; then |
| 111 | exit 1 | 111 | # This is to make sure postgres is configured and running |
| 112 | if ! pidof postmaster > /dev/null; then | ||
| 113 | /etc/init.d/postgresql-init | ||
| 114 | /etc/init.d/postgresql start | ||
| 115 | sleep 2 | ||
| 116 | fi | ||
| 117 | |||
| 118 | mkdir /var/log/heat | ||
| 119 | sudo -u postgres createdb heat | ||
| 120 | heat-manage db_sync | ||
| 112 | fi | 121 | fi |
| 113 | |||
| 114 | # This is to make sure postgres is configured and running | ||
| 115 | if ! pidof postmaster > /dev/null; then | ||
| 116 | /etc/init.d/postgresql-init | ||
| 117 | /etc/init.d/postgresql start | ||
| 118 | sleep 2 | ||
| 119 | fi | ||
| 120 | |||
| 121 | mkdir /var/log/heat | ||
| 122 | sudo -u postgres createdb heat | ||
| 123 | heat-manage db_sync | ||
| 124 | } | 122 | } |
| 125 | 123 | ||
| 126 | inherit setuptools identity hosts update-rc.d default_configs monitor | 124 | inherit setuptools identity hosts update-rc.d default_configs monitor |
