From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SXeBb-0006rO-R9 for garchives@archives.gentoo.org; Thu, 24 May 2012 19:59:04 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9E028E0874; Thu, 24 May 2012 19:58:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 69E62E0874 for ; Thu, 24 May 2012 19:58:46 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C95661B4025 for ; Thu, 24 May 2012 19:58:45 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 94312E5430 for ; Thu, 24 May 2012 19:58:44 +0000 (UTC) From: "Aaron Swenson" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Aaron Swenson" Message-ID: <1337887565.0bd46073b45a57809b2ff7a85ebb39f72681f253.titanofold@gentoo> Subject: [gentoo-commits] proj/pgsql-patches:initscripts commit in: / X-VCS-Repository: proj/pgsql-patches X-VCS-Files: postgresql.init X-VCS-Directories: / X-VCS-Committer: titanofold X-VCS-Committer-Name: Aaron Swenson X-VCS-Revision: 0bd46073b45a57809b2ff7a85ebb39f72681f253 X-VCS-Branch: initscripts Date: Thu, 24 May 2012 19:58:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 6ed1743b-9b19-4561-aa11-5877848e7392 X-Archives-Hash: 8681566686469921fd7a9045dde16ea0 commit: 0bd46073b45a57809b2ff7a85ebb39f72681f253 Author: Aaron W. Swenson gentoo org> AuthorDate: Thu May 24 19:26:05 2012 +0000 Commit: Aaron Swenson gentoo org> CommitDate: Thu May 24 19:26:05 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pgsql-patches= .git;a=3Dcommit;h=3D0bd46073 Don't just check for the variable, but see if it's true! --- postgresql.init | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/postgresql.init b/postgresql.init index 06f2d23..ae3c561 100755 --- a/postgresql.init +++ b/postgresql.init @@ -51,7 +51,7 @@ checkconfig() { status=3D1 fi done - if [ ${status} ] ; then + if [ ${status} -eq 1 ] ; then eerror "HINT: Try:" eerror " mv ${DATA_DIR%/}/*.conf ${PGDATA}" return 1