From d885f460337d3b1c0faeb291c526b812267aecca Mon Sep 17 00:00:00 2001 From: Hao Wu Date: Fri, 2 Feb 2024 07:33:54 +0000 Subject: [PATCH] Fix shell script involves demo cluster The port base variable is not consistent between probe_config.sh and gpdemo-defaults.sh. The unconsistency will cause an error. --- gpAux/gpdemo/probe_config.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gpAux/gpdemo/probe_config.sh b/gpAux/gpdemo/probe_config.sh index 760d31a5ae8..5a5fee2710f 100755 --- a/gpAux/gpdemo/probe_config.sh +++ b/gpAux/gpdemo/probe_config.sh @@ -44,7 +44,8 @@ declare -a PORTS=(5432 10001 10002 10003) ((PORT_MIN=0)) ((PORT_MAX=$NUM_PRIMARY_MIRROR_PAIRS)) -if [ -z $PORT_BASE ] ; then +PORT_BASE=$DEMO_PORT_BASE +if [ -z "$PORT_BASE" ] ; then echo "set PORT_BASE" exit 1 fi @@ -65,7 +66,7 @@ for ((i=PORT_MIN; i