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