Skip to content

Commit

Permalink
[1.x] Fix Node selection when using built in node (#912) (#916)
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>
kavilla and hackacad authored Nov 5, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent c46caed commit 66c5e50
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
@@ -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

0 comments on commit 66c5e50

Please sign in to comment.