--- bin/opensearch-dashboards-plugin.orig	2021-07-02 23:30:56 UTC
+++ bin/opensearch-dashboards-plugin
@@ -14,8 +14,8 @@ while [ -h "$SCRIPT" ] ; do
 done
 
 DIR="$(dirname "${SCRIPT}")/.."
-CONFIG_DIR=${OSD_PATH_CONF:-"$DIR/config"}
-NODE="${DIR}/node/bin/node"
+CONFIG_DIR="%%PREFIX%%/etc/opensearch-dashboards"
+NODE="%%LOCALBASE%%/bin/node"
 test -x "$NODE"
 if [ ! -x "$NODE" ]; then
   echo "unable to find usable node.js executable."
