Fix pgpool_recovery_pitr generation pgpool_setup.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Fri, 22 Jan 2021 04:33:07 +0000 (13:33 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Fri, 22 Jan 2021 06:09:15 +0000 (15:09 +0900)
It generated redundant psql definition line.

src/test/pgpool_setup.in

index 9e1fa6f5f8049ec7972582143b4b874116f9fb4f..0cf6b5d0c8d297fa0b3a175a7e21dde23a4375c1 100644 (file)
@@ -658,7 +658,7 @@ EOF
 # replace some variables in the script
 #-------------------------------------------
 /bin/sed -i \
-       -e "/__PGBIN__/s@__PGBIN__@$PGBIN@p" \
+       -e "/__PGBIN__/s@__PGBIN__@$PGBIN@" \
        -e "/__DATADIR_BASE__/s@__DATADIR_BASE__@$BASEDIR@" \
        -e "/__PGSUPERUSER__/s/__PGSUPERUSER__/$WHOAMI/" \
        -e "/__ARCHDIR__/s@__ARCHDIR__@$BASEDIR/archivedir@" \