From bb6b9259eeb2088d22f6a0dfe440c1dd9853f942 Mon Sep 17 00:00:00 2001 From: Sven R Date: Fri, 5 Nov 2021 22:09:18 +0100 Subject: [PATCH] Fix Node selection when using built in node (#912) 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 --- 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 d354a9778d36..d81555a18c33 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