diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb b/meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb index c1d7beb..90d712c 100644 --- a/meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb +++ b/meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb | |||
| @@ -43,10 +43,11 @@ pkg_postinst_${SRCNAME} () { | |||
| 43 | exit 1 | 43 | exit 1 |
| 44 | fi | 44 | fi |
| 45 | 45 | ||
| 46 | # This is to make sure postgres is configured and running | ||
| 46 | if ! pidof postmaster > /dev/null; then | 47 | if ! pidof postmaster > /dev/null; then |
| 47 | sudo -u postgres initdb -D /etc/postgresql/ | 48 | sudo -u postgres initdb -D /etc/postgresql/ |
| 48 | /etc/init.d/postgresql start | 49 | /etc/init.d/postgresql start |
| 49 | sleep 0.5 | 50 | sleep 0.2 |
| 50 | sudo -u postgres psql -c "CREATE ROLE admin WITH SUPERUSER LOGIN PASSWORD 'admin'" | 51 | sudo -u postgres psql -c "CREATE ROLE admin WITH SUPERUSER LOGIN PASSWORD 'admin'" |
| 51 | fi | 52 | fi |
| 52 | 53 | ||
