archrelease: copy trunk to community-any
[ArchLinux/community.git] / opensearch-dashboards / trunk / opensearch-dashboards-plugin
blobd374f1b0fb04ba6f9baa13fac1e55cc151ed428c
1 #!/bin/sh
3 # https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/src/dev/build/tasks/bin/scripts/opensearch-dashboards-plugin
5 DIR="/usr/share/opensearch-dashboards"
6 CONFIG_DIR="/etc/opensearch-dashboards"
8 if [ -f "${CONFIG_DIR}/node.options" ]; then
9 OSD_NODE_OPTS="$(grep -v ^# <${CONFIG_DIR}/node.options | xargs)"
12 NODE_OPTIONS="--no-warnings $OSD_NODE_OPTS $NODE_OPTIONS" NODE_ENV=production exec node "${DIR}/src/cli_plugin/dist" ${@}