diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinder_2013.1.3.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-cinder_2013.1.3.bb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder_2013.1.3.bb b/meta-openstack/recipes-devtools/python/python-cinder_2013.1.3.bb index 1cdcd98..a6a10e5 100644 --- a/meta-openstack/recipes-devtools/python/python-cinder_2013.1.3.bb +++ b/meta-openstack/recipes-devtools/python/python-cinder_2013.1.3.bb | |||
| @@ -57,10 +57,8 @@ pkg_postinst_${SRCNAME} () { | |||
| 57 | 57 | ||
| 58 | # This is to make sure postgres is configured and running | 58 | # This is to make sure postgres is configured and running |
| 59 | if ! pidof postmaster > /dev/null; then | 59 | if ! pidof postmaster > /dev/null; then |
| 60 | sudo -u postgres initdb -D /etc/postgresql/ | 60 | /etc/init.d/postgresql-init |
| 61 | /etc/init.d/postgresql start | 61 | /etc/init.d/postgresql start |
| 62 | sleep 0.2 | ||
| 63 | sudo -u postgres psql -c "CREATE ROLE ${DB_USER} WITH SUPERUSER LOGIN PASSWORD '${DB_PASSWORD}'" | ||
| 64 | fi | 62 | fi |
| 65 | 63 | ||
| 66 | sudo -u postgres createdb cinder | 64 | sudo -u postgres createdb cinder |
