Skip to content

Commit

Permalink
Attempt to properly define OPENSEARCH_PATH_CONF in rpm.spec file
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRuiz7 committed Nov 20, 2024
1 parent ca81329 commit 11a6a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distribution/packages/src/rpm/wazuh-indexer.rpm.spec
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ set -e
chown -R %{name}:%{name} %{config_dir}
chown -R %{name}:%{name} %{log_dir}

export OPENSEARCH_PATH_CONF=${OPENSEARCH_PATH_CONF:-${config_dir}}
export OPENSEARCH_PATH_CONF=${OPENSEARCH_PATH_CONF:-%{config_dir}}
# Apply Performance Analyzer settings, as per https://github.com/opensearch-project/opensearch-build/blob/2.18.0/scripts/pkg/build_templates/current/opensearch/deb/debian/postinst#L28-L37
if ! grep -q '## OpenSearch Performance Analyzer' "$OPENSEARCH_PATH_CONF/jvm.options"; then
CLK_TCK=$(/usr/bin/getconf CLK_TCK)
Expand Down

0 comments on commit 11a6a33

Please sign in to comment.