summaryrefslogtreecommitdiffstats
path: root/postgresql-ctl.in
diff options
context:
space:
mode:
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"}