aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron W. Swenson <titanofold@gentoo.org>2012-05-27 09:57:59 -0400
committerAaron W. Swenson <titanofold@gentoo.org>2012-05-27 09:57:59 -0400
commit9d53c458db3bf66f9784ed995d257766bf9468c5 (patch)
tree4926dddc3f5f90cbc86c591f4323d5431d538b5b
parentJust bail out if one of the configuration files is missing. The hint (diff)
downloadpatches-9d53c458db3bf66f9784ed995d257766bf9468c5.tar.gz
patches-9d53c458db3bf66f9784ed995d257766bf9468c5.tar.bz2
patches-9d53c458db3bf66f9784ed995d257766bf9468c5.zip
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.
-rwxr-xr-xpostgresql.init1
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}"