diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-glance_git.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-glance_git.bb | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-glance_git.bb b/meta-openstack/recipes-devtools/python/python-glance_git.bb index 27c33b9..4042f1b 100644 --- a/meta-openstack/recipes-devtools/python/python-glance_git.bb +++ b/meta-openstack/recipes-devtools/python/python-glance_git.bb | |||
| @@ -122,20 +122,18 @@ do_install_append() { | |||
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | pkg_postinst_${SRCNAME}-setup () { | 124 | pkg_postinst_${SRCNAME}-setup () { |
| 125 | if [ "x$D" != "x" ]; then | 125 | if [ -z "$D" ]; then |
| 126 | exit 1 | 126 | # This is to make sure postgres is configured and running |
| 127 | if ! pidof postmaster > /dev/null; then | ||
| 128 | /etc/init.d/postgresql-init | ||
| 129 | /etc/init.d/postgresql start | ||
| 130 | sleep 5 | ||
| 131 | fi | ||
| 132 | |||
| 133 | mkdir /var/log/glance | ||
| 134 | sudo -u postgres createdb glance | ||
| 135 | glance-manage db_sync | ||
| 127 | fi | 136 | fi |
| 128 | |||
| 129 | # This is to make sure postgres is configured and running | ||
| 130 | if ! pidof postmaster > /dev/null; then | ||
| 131 | /etc/init.d/postgresql-init | ||
| 132 | /etc/init.d/postgresql start | ||
| 133 | sleep 5 | ||
| 134 | fi | ||
| 135 | |||
| 136 | mkdir /var/log/glance | ||
| 137 | sudo -u postgres createdb glance | ||
| 138 | glance-manage db_sync | ||
| 139 | } | 137 | } |
| 140 | 138 | ||
| 141 | PACKAGES += " ${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-setup ${SRCNAME}-api ${SRCNAME}-registry" | 139 | PACKAGES += " ${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-setup ${SRCNAME}-api ${SRCNAME}-registry" |
