Skip to content

Commit

Permalink
Merge pull request #2646 from wazuh/bug/2637-Duplicate-code-indexer-p…
Browse files Browse the repository at this point in the history
…ackage

Fixing wazuh-indexer.spec duplicated information
  • Loading branch information
davidjiglesias authored Nov 29, 2023
2 parents 67c70c8 + e6da658 commit a19250f
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions stack/indexer/rpm/wazuh-indexer.spec
Original file line number Diff line number Diff line change
Expand Up @@ -181,18 +181,6 @@ if [ ${1} = 2 ]; then
fi
fi

# If is an upgrade, move the securityconfig files if they exist (4.3.x versions)
if [ ${1} = 2 ]; then
if [ -d "%{INSTALL_DIR}"/plugins/opensearch-security/securityconfig ]; then

if [ ! -d "%{CONFIG_DIR}"/opensearch-security ]; then
mkdir "%{CONFIG_DIR}"/opensearch-security
fi

cp -r "%{INSTALL_DIR}"/plugins/opensearch-security/securityconfig/* "%{CONFIG_DIR}"/opensearch-security
fi
fi

# -----------------------------------------------------------------------------

%preun
Expand Down

0 comments on commit a19250f

Please sign in to comment.