From 7702636a1cae717303fc784b30a21a038455791d Mon Sep 17 00:00:00 2001 From: Kawika Avilla Date: Thu, 21 Oct 2021 17:22:33 +0000 Subject: [PATCH] Revert "FreeBSD Node support" This reverts commit 1d1de7ee3b8172006e6e9a2c7ef77c2120732dda. Signed-off-by: Kawika Avilla --- .../tasks/bin/scripts/opensearch-dashboards | 20 +------------------ 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/dev/build/tasks/bin/scripts/opensearch-dashboards b/src/dev/build/tasks/bin/scripts/opensearch-dashboards index 475913f49580..56c22eb268c4 100755 --- a/src/dev/build/tasks/bin/scripts/opensearch-dashboards +++ b/src/dev/build/tasks/bin/scripts/opensearch-dashboards @@ -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") @@ -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