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