From 3250cfb0bbedb856420ebbe40ed5f70f52de4177 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Sun, 3 Nov 2013 23:11:09 -0500 Subject: 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 --- meta-openstack/recipes-support/postgresql/postgresql/postgresql-init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta-openstack/recipes-support/postgresql') 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 count=`expr $count + 1` done -if [ $done -eq 0 ]; then +if [ $done -ne 0 ]; then echo "[ERROR] postgres: unable to create admin account" exit 1 fi -- cgit v1.2.3-54-g00ecf