aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron W. Swenson <titanofold@gentoo.org>2012-05-24 15:46:29 -0400
committerAaron W. Swenson <titanofold@gentoo.org>2012-05-24 15:46:29 -0400
commit9031a6f2c6825cd99da48952f44165d64f575192 (patch)
treef3a7b70bae25352a9a4a89960eac97fade8ca4c3
parentDon't just check for the variable, but see if it's true! (diff)
downloadpatches-9031a6f2c6825cd99da48952f44165d64f575192.tar.gz
patches-9031a6f2c6825cd99da48952f44165d64f575192.tar.bz2
patches-9031a6f2c6825cd99da48952f44165d64f575192.zip
Missed a path variable.
-rwxr-xr-xpostgresql.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/postgresql.init b/postgresql.init
index ae3c561..8217299 100755
--- a/postgresql.init
+++ b/postgresql.init
@@ -8,7 +8,7 @@ extra_started_commands="reload"
get_config() {
[ -f ${PGDATA}/postgresql.conf ] || return 1
- eval echo $(sed -e 's:#.*::' ${PGDATA}/postgresql.conf | awk '$1 == "'$1'" { print $2 == "=" ? $3 : $2 }')
+ eval echo $(sed -e 's:#.*::' ${PGDATA%/}/postgresql.conf | awk '$1 == "'$1'" { print $2 == "=" ? $3 : $2 }')
}
depend() {