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 1SYe1G-00023s-UO for garchives@archives.gentoo.org; Sun, 27 May 2012 14:00:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 17020E06B4; Sun, 27 May 2012 14:00:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id D7BF6E06B4 for ; Sun, 27 May 2012 14:00:22 +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 219AC1B401B for ; Sun, 27 May 2012 14:00:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id D4721E5428 for ; Sun, 27 May 2012 14:00:20 +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: <1338127079.9d53c458db3bf66f9784ed995d257766bf9468c5.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: 9d53c458db3bf66f9784ed995d257766bf9468c5 X-VCS-Branch: initscripts Date: Sun, 27 May 2012 14:00:20 +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: a110cc35-d31d-4e2d-9f2c-474684a6a250 X-Archives-Hash: e07a8717704d4d9ed2262497cb280e5d commit: 9d53c458db3bf66f9784ed995d257766bf9468c5 Author: Aaron W. Swenson gentoo org> AuthorDate: Sun May 27 13:57:59 2012 +0000 Commit: Aaron Swenson gentoo org> CommitDate: Sun May 27 13:57:59 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pgsql-patches= .git;a=3Dcommit;h=3D9d53c458 Return if DATA_DIR hasn't been set so we don't fall through to the next error hinting at running 'emerge --config' as well. --- postgresql.init | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/postgresql.init b/postgresql.init index 1dabe2b..1575a11 100755 --- a/postgresql.init +++ b/postgresql.init @@ -30,6 +30,7 @@ checkconfig() { if [ -z ${DATA_DIR} ] ; then eerror "DATA_DIR not set" eerror "HINT: Perhaps you need to update /etc/conf.d/postgresql-= @SLOT@" + return 1 fi if [ ! -d ${DATA_DIR} ] ; then eerror "Directory not found: ${DATA_DIR}"