From 312a149361b122c8a10a1bb35703ae4e599fc816 Mon Sep 17 00:00:00 2001 From: Jason Wessel Date: Fri, 6 Dec 2013 10:03:00 -0600 Subject: postgresql-init: Fix logic inversion The logic was flipped in the wrong place. This makes things right and fixes up the possibility that the symlink already exists. Signed-off-by: Jason Wessel --- meta-openstack/recipes-support/postgresql/postgresql_9.2.4.bbappend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta-openstack/recipes-support/postgresql/postgresql_9.2.4.bbappend') diff --git a/meta-openstack/recipes-support/postgresql/postgresql_9.2.4.bbappend b/meta-openstack/recipes-support/postgresql/postgresql_9.2.4.bbappend index 0e281ba..c485e2d 100644 --- a/meta-openstack/recipes-support/postgresql/postgresql_9.2.4.bbappend +++ b/meta-openstack/recipes-support/postgresql/postgresql_9.2.4.bbappend @@ -42,7 +42,7 @@ pkg_postinst_${PN}-setup () { fi /etc/init.d/postgresql-init - if [ $? -eq 0 ]; then + if [ $? -ne 0 ]; then echo "[ERROR] postgres: unable to create admin account" exit 1 fi -- cgit v1.2.3-54-g00ecf