From c71e23e7687a5aece3a9abde682b88ca6d6e0a99 Mon Sep 17 00:00:00 2001 From: Mihai Prica Date: Thu, 4 Jul 2013 18:26:02 +0300 Subject: python-cinder: Decreased sleep period Signed-off-by: Mihai Prica --- meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta-openstack/recipes-devtools/python') 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} () { exit 1 fi + # This is to make sure postgres is configured and running if ! pidof postmaster > /dev/null; then sudo -u postgres initdb -D /etc/postgresql/ /etc/init.d/postgresql start - sleep 0.5 + sleep 0.2 sudo -u postgres psql -c "CREATE ROLE admin WITH SUPERUSER LOGIN PASSWORD 'admin'" fi -- cgit v1.2.3-54-g00ecf