Skip to content

Commit

Permalink
fix(#2654): duplicated script delete
Browse files Browse the repository at this point in the history
  • Loading branch information
pro-akim committed Nov 27, 2023
1 parent 888b4e1 commit e6da658
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 e6da658

Please sign in to comment.