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.
@@ -178,8 +178,6 @@ if [ -z "${GPHOME}" ]; then
echo " file in your Greenplum installation directory."
echo ""
exit 1
-else
- GPSEARCH=$GPHOME
fi
cat <<-EOF
@@ -210,16 +208,16 @@ cat <<-EOF
EOF
-GPPATH=`find $GPSEARCH -name gpstart| tail -1`
+GPPATH=`find -H $GPHOME -name gpstart| 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`
