diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-quantum_2013.1.3.bb')
-rw-r--r-- | meta-openstack/recipes-devtools/python/python-quantum_2013.1.3.bb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-quantum_2013.1.3.bb b/meta-openstack/recipes-devtools/python/python-quantum_2013.1.3.bb index 34da3c9..8198e6a 100644 --- a/meta-openstack/recipes-devtools/python/python-quantum_2013.1.3.bb +++ b/meta-openstack/recipes-devtools/python/python-quantum_2013.1.3.bb | |||
@@ -74,10 +74,9 @@ pkg_postinst_${SRCNAME} () { | |||
74 | 74 | ||
75 | # This is to make sure postgres is configured and running | 75 | # This is to make sure postgres is configured and running |
76 | if ! pidof postmaster > /dev/null; then | 76 | if ! pidof postmaster > /dev/null; then |
77 | sudo -u postgres initdb -D /etc/postgresql/ | 77 | /etc/init.d/postgresql-init |
78 | /etc/init.d/postgresql start | 78 | /etc/init.d/postgresql start |
79 | sleep 0.2 | 79 | sleep 5 |
80 | sudo -u postgres psql -c "CREATE ROLE ${DB_USER} WITH SUPERUSER LOGIN PASSWORD '${DB_PASSWORD}'" | ||
81 | fi | 80 | fi |
82 | 81 | ||
83 | sudo -u postgres createdb ovs_quantum | 82 | sudo -u postgres createdb ovs_quantum |