Skip to content

Commit

Permalink
[1.2] Fix Node selection when using built in node (opensearch-project…
Browse files Browse the repository at this point in the history
…#912)

Fixed node selection to use the node executable instead of the user local node.

Issue resolved:
opensearch-project#908

Signed-off-by: Sven R <admin@hackacad.net>
  • Loading branch information
hackacad authored and kavilla committed Nov 5, 2021
1 parent 9f78756 commit 447c753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dev/build/tasks/bin/scripts/opensearch-dashboards
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ DIR="$(dirname "${SCRIPT}")/.."
CONFIG_DIR=${OSD_PATH_CONF:-"$DIR/config"}

if [ -x "${DIR}/node/bin/node" ]; then
NODE="/usr/local/bin/node"
NODE="${DIR}/node/bin/node"
else
NODE="$(which node)"
fi
Expand Down

0 comments on commit 447c753

Please sign in to comment.