summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python
diff options
context:
space:
mode:
authorMihai Prica <prica.mihai@gmail.com>2013-07-04 18:26:02 +0300
committerBruce Ashfield <bruce.ashfield@windriver.com>2013-08-28 18:41:58 -0400
commitc71e23e7687a5aece3a9abde682b88ca6d6e0a99 (patch)
treedd3554f263fdc874edae4263bb9a35d224c4b048 /meta-openstack/recipes-devtools/python
parent8841738416c86e4db14aeb9adcfabb98125016a3 (diff)
downloadmeta-cloud-services-c71e23e7687a5aece3a9abde682b88ca6d6e0a99.tar.gz
python-cinder: Decreased sleep period
Signed-off-by: Mihai Prica <prica.mihai@gmail.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python')
-rw-r--r--meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb3
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