diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-glance_2013.1.3.bb')
-rw-r--r-- | meta-openstack/recipes-devtools/python/python-glance_2013.1.3.bb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-glance_2013.1.3.bb b/meta-openstack/recipes-devtools/python/python-glance_2013.1.3.bb index 9bfd2624..ff81a0c7 100644 --- a/meta-openstack/recipes-devtools/python/python-glance_2013.1.3.bb +++ b/meta-openstack/recipes-devtools/python/python-glance_2013.1.3.bb @@ -65,10 +65,9 @@ pkg_postinst_${SRCNAME} () { # 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-init /etc/init.d/postgresql start - sleep 0.2 - sudo -u postgres psql -c "CREATE ROLE ${DB_USER} WITH SUPERUSER LOGIN PASSWORD '${DB_PASSWORD}'" + sleep 5 fi mkdir /var/log/glance |