#!/bin/bash

# This script is compat-wrapper for PGPORT specifying directly in
# postgresql.service.  There is not possible to do conditional step in service
# file based on (non)existence of PGPORT variable.

/usr/bin/pg_ctl "$@" ${PGPORT+-o "-p $PGPORT"}
