archrelease: copy trunk to community-any
[ArchLinux/community.git] / opensearch-dashboards / trunk / opensearch-dashboards
blobb84d28670c274a1f9e6798604a7eb7c3b13a1949
1 #!/bin/sh
3 # https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/src/dev/build/tasks/bin/scripts/opensearch-dashboards
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 --max-http-header-size=65536 $OSD_NODE_OPTS $NODE_OPTIONS" NODE_ENV=production exec node "${DIR}/src/cli/dist" ${@}