diff options
author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-11-03 23:11:09 -0500 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-11-25 15:25:35 -0500 |
commit | 3250cfb0bbedb856420ebbe40ed5f70f52de4177 (patch) | |
tree | c9ccd4e3415654426ba97c1413d585977387b0d8 /meta-openstack | |
parent | ebe1a4e823cb7b47e0cb85a22c7d3e2398da47d0 (diff) | |
download | meta-cloud-services-3250cfb0bbedb856420ebbe40ed5f70f52de4177.tar.gz |
postgreql-init: fix return code checking
The return code check after the DB user creation was inverted, which results
in false reports of errors, and post-insts that are not cleaned up.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack')
-rw-r--r-- | meta-openstack/recipes-support/postgresql/postgresql/postgresql-init | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-openstack/recipes-support/postgresql/postgresql/postgresql-init b/meta-openstack/recipes-support/postgresql/postgresql/postgresql-init index d9850da..26f858e 100644 --- a/meta-openstack/recipes-support/postgresql/postgresql/postgresql-init +++ b/meta-openstack/recipes-support/postgresql/postgresql/postgresql-init | |||
@@ -38,7 +38,7 @@ while [ $count -le 10 ] && [ $done -eq 0 ]; do | |||
38 | count=`expr $count + 1` | 38 | count=`expr $count + 1` |
39 | done | 39 | done |
40 | 40 | ||
41 | if [ $done -eq 0 ]; then | 41 | if [ $done -ne 0 ]; then |
42 | echo "[ERROR] postgres: unable to create admin account" | 42 | echo "[ERROR] postgres: unable to create admin account" |
43 | exit 1 | 43 | exit 1 |
44 | fi | 44 | fi |