Skip to content

Commit

Permalink
Revert "FreeBSD Node support"
Browse files Browse the repository at this point in the history
This reverts commit 1d1de7e.

Signed-off-by: Kawika Avilla <[email protected]>
  • Loading branch information
kavilla committed Oct 23, 2021
1 parent 3439979 commit 7702636
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions src/dev/build/tasks/bin/scripts/opensearch-dashboards
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
#!/bin/sh
SCRIPT=$0


UNAME=$(uname -s)
if [ $UNAME = "FreeBSD" ]; then
OS="freebsd"
elif [ $UNAME = "Darwin" ]; then
OS="darwin"
else
OS="other"
fi


# SCRIPT may be an arbitrarily deep series of symlinks. Loop until we have the concrete path.
while [ -h "$SCRIPT" ] ; do
ls=$(ls -ld "$SCRIPT")
Expand All @@ -26,15 +15,8 @@ done

DIR="$(dirname "${SCRIPT}")/.."
CONFIG_DIR=${OSD_PATH_CONF:-"$DIR/config"}

if [ $OS = "freebsd" ]; then
NODE="/usr/local/bin/node"
else
NODE="${DIR}/node/bin/node"
fi

NODE="${DIR}/node/bin/node"
test -x "$NODE"

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

0 comments on commit 7702636

Please sign in to comment.