提交 8d79e5e2 编写于 作者: K Kalen Krempely 提交者: Kalen Krempely

demo_cluster.sh: remove GPSEARCH

Use GPHOME directly. There is no need for GPSEARCH.

This enables demo_cluster.sh to handle symlinks which is useful when
GPDB is installed using RPMs and a demo cluster is desired.

(cherry picked from commit 6932195a)
Co-authored-by: NJamie McAtamney <jmcatamney@vmware.com>
上级 343f8826
......@@ -162,8 +162,6 @@ if [ -z "${GPHOME}" ]; then
echo " file in your Greenplum installation directory."
echo ""
exit 1
else
GPSEARCH=$GPHOME
fi
cat <<-EOF
......@@ -194,16 +192,16 @@ cat <<-EOF
EOF
GPPATH=`find $GPSEARCH -name gp_dump| tail -1`
GPPATH=`find -H $GPHOME -name gp_dump| tail -1`
RETVAL=$?
if [ "$RETVAL" -ne 0 ]; then
echo "Error attempting to find Greenplum executables in $GPSEARCH"
echo "Error attempting to find Greenplum executables in $GPHOME"
exit 1
fi
if [ ! -x "$GPPATH" ]; then
echo "No executables found for Greenplum installation in $GPSEARCH"
echo "No executables found for Greenplum installation in $GPHOME"
exit 1
fi
GPPATH=`dirname $GPPATH`
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册