Skip to content

Commit

Permalink
[1.x] FreeBSD Node support
Browse files Browse the repository at this point in the history
Backport PR:
opensearch-project#678

Signed-off-by: hackacad <[email protected]>
  • Loading branch information
hackacad authored and ananzh committed Oct 20, 2021
1 parent 99d4c28 commit 5001006
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/dev/build/tasks/bin/scripts/opensearch-dashboards
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@ done

DIR="$(dirname "${SCRIPT}")/.."
CONFIG_DIR=${OSD_PATH_CONF:-"$DIR/config"}
NODE="${DIR}/node/bin/node"
test -x "$NODE"

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

if [ ! -x "$NODE" ]; then
echo "unable to find usable node.js executable."
exit 1
Expand Down

0 comments on commit 5001006

Please sign in to comment.