mirror of https://github.com/apache/druid.git
Replace source call to make scripts more portable (#12014)
Fixes #10744 Fixes: ./bin/node.sh: 44: ./bin/node.sh: source: not found Could not find java - please run /opt/druid/apache-druid-0.20.0/bin/verify-java to confirm it is installed.
This commit is contained in:
parent
2539b7a748
commit
590cf993c0
|
@ -45,7 +45,7 @@ wait
|
|||
|
||||
WHEREAMI="$(dirname "$0")"
|
||||
WHEREAMI="$(cd "$WHEREAMI" && pwd)"
|
||||
JAVA_BIN_DIR="$(source "$WHEREAMI"/java-util && get_java_bin_dir)"
|
||||
JAVA_BIN_DIR="$(. /"$WHEREAMI"/java-util && get_java_bin_dir)"
|
||||
if [ -z "$JAVA_BIN_DIR" ]; then
|
||||
>&2 echo "Could not find java - please run $WHEREAMI/verify-java to confirm it is installed."
|
||||
exit 1
|
||||
|
|
|
@ -40,7 +40,7 @@ CONF_DIR="${DRUID_CONF_DIR:=conf/druid}"
|
|||
PID_DIR="${DRUID_PID_DIR:=var/druid/pids}"
|
||||
WHEREAMI="$(dirname "$0")"
|
||||
WHEREAMI="$(cd "$WHEREAMI" && pwd)"
|
||||
JAVA_BIN_DIR="$(source "$WHEREAMI"/java-util && get_java_bin_dir)"
|
||||
JAVA_BIN_DIR="$(. /"$WHEREAMI"/java-util && get_java_bin_dir)"
|
||||
|
||||
# Remove possilble ending slash
|
||||
LOG_DIR="${DRUID_LOG_DIR:=${WHEREAMI}/log}"
|
||||
|
|
Loading…
Reference in New Issue