diff options
| author | Mihai Prica <prica.mihai@gmail.com> | 2013-06-27 14:12:50 +0300 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-08-28 18:41:57 -0400 |
| commit | c7446265a2ea6f5501fe63105ce592e621d0f273 (patch) | |
| tree | 74ba659ab1e790cba0b3ec1dbcf0696afa0b4298 | |
| parent | fe3a7ad34c31123d7182b52388b6a939197e3b45 (diff) | |
| download | meta-cloud-services-c7446265a2ea6f5501fe63105ce592e621d0f273.tar.gz | |
postgresql: Changed db user from nova to admin
Signed-off-by: Mihai Prica <prica.mihai@gmail.com>
| -rw-r--r-- | meta-openstack/recipes-support/postgresql/postgresql_8.4.7.bbappend | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/meta-openstack/recipes-support/postgresql/postgresql_8.4.7.bbappend b/meta-openstack/recipes-support/postgresql/postgresql_8.4.7.bbappend index 5e9a2f7..6f56e10 100644 --- a/meta-openstack/recipes-support/postgresql/postgresql_8.4.7.bbappend +++ b/meta-openstack/recipes-support/postgresql/postgresql_8.4.7.bbappend | |||
| @@ -24,10 +24,8 @@ pkg_postinst_${PN} () { | |||
| 24 | fi | 24 | fi |
| 25 | 25 | ||
| 26 | sudo -u postgres initdb -D /etc/${PN}/ | 26 | sudo -u postgres initdb -D /etc/${PN}/ |
| 27 | #quick fix | ||
| 28 | /etc/init.d/postgresql start | 27 | /etc/init.d/postgresql start |
| 29 | sleep 1 | 28 | sudo -u postgres psql -c "CREATE ROLE admin WITH SUPERUSER LOGIN PASSWORD 'admin'" |
| 30 | sudo -u postgres createuser -s nova | ||
| 31 | } | 29 | } |
| 32 | 30 | ||
| 33 | FILES_${PN} += "${localstatedir}/run/${PN}" | 31 | FILES_${PN} += "${localstatedir}/run/${PN}" |
