Skip to content

Commit

Permalink
Fix opensearch-env always sources the environment from hardcoded file
Browse files Browse the repository at this point in the history
Signed-off-by: Xue Zhou <xuezhou@amazon.com>
  • Loading branch information
xuezhou25 committed Jun 24, 2021
1 parent dff2744 commit c2c93ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion distribution/src/bin/opensearch-env
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ fi

export HOSTNAME=$HOSTNAME

${source.path.env}
if [ -z "$OPENSEARCH_PATH_CONF" ]; then
${source.path.env}
fi

if [ -z "$OPENSEARCH_PATH_CONF" ]; then
echo "OPENSEARCH_PATH_CONF must be set to the configuration path"
Expand Down

0 comments on commit c2c93ba

Please sign in to comment.