From 66c5e50231d4fe8c499f8684429885088216fbaa Mon Sep 17 00:00:00 2001 From: Kawika Avilla Date: Fri, 5 Nov 2021 15:21:49 -0700 Subject: [PATCH] [1.x] Fix Node selection when using built in node (#912) (#916) Fixed node selection to use the node executable instead of the user local node. Issue resolved: https://github.com/opensearch-project/OpenSearch-Dashboards/issues/908 Signed-off-by: Sven R Co-authored-by: Sven R --- src/dev/build/tasks/bin/scripts/opensearch-dashboards | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dev/build/tasks/bin/scripts/opensearch-dashboards b/src/dev/build/tasks/bin/scripts/opensearch-dashboards index d354a9778d3..d81555a18c3 100755 --- a/src/dev/build/tasks/bin/scripts/opensearch-dashboards +++ b/src/dev/build/tasks/bin/scripts/opensearch-dashboards @@ -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