diff options
Diffstat (limited to 'meta-openstack')
| -rw-r--r-- | meta-openstack/recipes-support/postgresql/postgresql/postgresql-init | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/meta-openstack/recipes-support/postgresql/postgresql/postgresql-init b/meta-openstack/recipes-support/postgresql/postgresql/postgresql-init index 26f858e..874f24e 100644 --- a/meta-openstack/recipes-support/postgresql/postgresql/postgresql-init +++ b/meta-openstack/recipes-support/postgresql/postgresql/postgresql-init | |||
| @@ -13,13 +13,10 @@ if [ -e /etc/${PN}/PG_VERSION ]; then | |||
| 13 | fi | 13 | fi |
| 14 | 14 | ||
| 15 | sudo -u postgres initdb -D /etc/${PN}/ | 15 | sudo -u postgres initdb -D /etc/${PN}/ |
| 16 | sleep 2 | ||
| 17 | echo "listen_addresses = '*'" >> /etc/${PN}/postgresql.conf | 16 | echo "listen_addresses = '*'" >> /etc/${PN}/postgresql.conf |
| 18 | echo "host all all ${CONTROLLER_IP}/32 trust" >> /etc/${PN}/pg_hba.conf | 17 | echo "host all all ${CONTROLLER_IP}/32 trust" >> /etc/${PN}/pg_hba.conf |
| 19 | echo "host all all ${COMPUTE_IP}/32 trust" >> /etc/${PN}/pg_hba.conf | 18 | echo "host all all ${COMPUTE_IP}/32 trust" >> /etc/${PN}/pg_hba.conf |
| 20 | sleep 2 | ||
| 21 | /etc/init.d/postgresql start | 19 | /etc/init.d/postgresql start |
| 22 | sleep 10 | ||
| 23 | 20 | ||
| 24 | count=0 | 21 | count=0 |
| 25 | done=0 | 22 | done=0 |
