Skip to content

Commit

Permalink
[1.2] Fix Node selection when using built in node (#912) (#917)
Browse files Browse the repository at this point in the history
Fixed node selection to use the node executable instead of the user local node.

Issue resolved:
#908

Signed-off-by: Sven R <admin@hackacad.net>

Co-authored-by: Sven R <admin@hackacad.net>
  • Loading branch information
kavilla and hackacad authored Nov 5, 2021
1 parent 9f78756 commit 78c1590
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 78c1590

Please sign in to comment.