Fix pgpool_setup to reflect the -p (baseport) to ORIGBASEPORT variable.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Sun, 1 Sep 2019 02:38:35 +0000 (11:38 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Sun, 1 Sep 2019 02:47:28 +0000 (11:47 +0900)
Otherwise, shutdown generated script by pgpool_setup does not use
proper port number for netstat command.

src/test/pgpool_setup

index f1c47be30c255504aae4b8c5735c53e10068ea98..e7ec55d6e3804ae66f5c051a648f09a4ab814d7c 100755 (executable)
@@ -628,6 +628,7 @@ do
        elif [ $1 = "-p" ];then
                shift
                BASEPORT=$1
+               ORIGBASEPORT=$1
        elif [ $1 = "-pg" ];then
                shift
                PGBASEPORT=$1