summaryrefslogtreecommitdiffstats
path: root/postgresql-ctl.in
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2014-07-01 14:18:39 +0200
committerPavel Raiskup <praiskup@redhat.com>2014-07-01 14:18:39 +0200
commitbbb9575cc6af844496386afe17603319ceccf1d9 (patch)
tree88a784def7340ed397e5588c1e5a3fdf3ea7951f /postgresql-ctl.in
parent7b1bb4fd5a05b9c35ae23734f12b2a92fe5f0a57 (diff)
downloadpostgresql-setup-bbb9575cc6af844496386afe17603319ceccf1d9.tar.gz
postgresql-setup-bbb9575cc6af844496386afe17603319ceccf1d9.tar.xz
postgresql-setup-bbb9575cc6af844496386afe17603319ceccf1d9.zip
postgresql-ctl: use detected PG_CTL_BIN
Diffstat (limited to 'postgresql-ctl.in')
-rw-r--r--postgresql-ctl.in4
1 files changed, 1 insertions, 3 deletions
diff --git a/postgresql-ctl.in b/postgresql-ctl.in
index 1fe9838..1327b41 100644
--- a/postgresql-ctl.in
+++ b/postgresql-ctl.in
@@ -4,6 +4,4 @@
# postgresql.service. There is not possible to do conditional step in service
# file based on (non)existence of PGPORT variable.
-PG_CTL=/usr/bin/pg_ctl
-
-$PG_CTL "$@" ${PGPORT+-o "-p $PGPORT"}
+@PG_CTL_BIN@ "$@" ${PGPORT+-o "-p $PGPORT"}