diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb b/meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb index 56eaaf0..dfbe0dc 100644 --- a/meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb +++ b/meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb | |||
| @@ -57,7 +57,16 @@ pkg_postinst_${SRCNAME} () { | |||
| 57 | exit 1 | 57 | exit 1 |
| 58 | fi | 58 | fi |
| 59 | 59 | ||
| 60 | # This is to make sure postgres is configured and running | ||
| 61 | if ! pidof postmaster > /dev/null; then | ||
| 62 | sudo -u postgres initdb -D /etc/postgresql/ | ||
| 63 | /etc/init.d/postgresql start | ||
| 64 | sleep 0.2 | ||
| 65 | sudo -u postgres psql -c "CREATE ROLE admin WITH SUPERUSER LOGIN PASSWORD 'admin'" | ||
| 66 | fi | ||
| 67 | |||
| 60 | sudo -u postgres createdb quantum | 68 | sudo -u postgres createdb quantum |
| 69 | |||
| 61 | } | 70 | } |
| 62 | 71 | ||
| 63 | PACKAGES += " \ | 72 | PACKAGES += " \ |
