diff options
| author | Mihai Prica <prica.mihai@gmail.com> | 2013-07-04 18:25:27 +0300 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-08-28 18:41:57 -0400 |
| commit | 8841738416c86e4db14aeb9adcfabb98125016a3 (patch) | |
| tree | 245512ba204015755d1c2e1d419b3b2b22d41b70 /meta-openstack/recipes-devtools/python/python-glance_2013.1.bb | |
| parent | 8be1d5385f2f4eb85ffc46db73f964428563af8e (diff) | |
| download | meta-cloud-services-8841738416c86e4db14aeb9adcfabb98125016a3.tar.gz | |
nova, glance, keystone, quantum: Make sure postgres is running
To initialize the databases the openstack components require
that the postgresql server is running. Because there is no
guarantee to the order in which postinstalls are run, the
postinstalls first check to see if postgresql is running, and
start it if it's not.
Signed-off-by: Mihai Prica <prica.mihai@gmail.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-glance_2013.1.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-glance_2013.1.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-glance_2013.1.bb b/meta-openstack/recipes-devtools/python/python-glance_2013.1.bb index a64ac9e..72d5662 100644 --- a/meta-openstack/recipes-devtools/python/python-glance_2013.1.bb +++ b/meta-openstack/recipes-devtools/python/python-glance_2013.1.bb | |||
| @@ -62,7 +62,7 @@ pkg_postinst_${SRCNAME} () { | |||
| 62 | if ! pidof postmaster > /dev/null; then | 62 | if ! pidof postmaster > /dev/null; then |
| 63 | sudo -u postgres initdb -D /etc/postgresql/ | 63 | sudo -u postgres initdb -D /etc/postgresql/ |
| 64 | /etc/init.d/postgresql start | 64 | /etc/init.d/postgresql start |
| 65 | sleep 0.5 | 65 | sleep 0.2 |
| 66 | sudo -u postgres psql -c "CREATE ROLE admin WITH SUPERUSER LOGIN PASSWORD 'admin'" | 66 | sudo -u postgres psql -c "CREATE ROLE admin WITH SUPERUSER LOGIN PASSWORD 'admin'" |
| 67 | fi | 67 | fi |
| 68 | 68 | ||
