Skip to content

Commit

Permalink
Remove extra spaces and update rpm restart command
Browse files Browse the repository at this point in the history
  • Loading branch information
QU3B1M committed Oct 25, 2024
1 parent b2d1265 commit da70239
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions distribution/packages/src/deb/debian/prerm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ set -e
case "$1" in
upgrade|deconfigure)
;;

remove)
echo "Running Wazuh Indexer Pre-Removal Script"
# Stop existing service
Expand All @@ -27,15 +26,12 @@ case "$1" in
systemctl --no-reload stop wazuh-indexer-performance-analyzer.service
fi
;;

failed-upgrade)
;;

*)
echo "prerm called with unknown argument \`$1'" >&2
exit 0
;;

esac

exit 0
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 @@ -209,7 +209,7 @@ if [ -f %{tmp_dir}/wazuh-indexer.restart ]; then
rm -f %{tmp_dir}/wazuh-indexer.restart
if command -v systemctl > /dev/null; then
echo "Restarting wazuh-indexer service..."
systemctl restart wazuh-server.service > /dev/null 2>&1
systemctl restart wazuh-indexer.service > /dev/null 2>&1
exit 0
fi
fi
Expand Down

0 comments on commit da70239

Please sign in to comment.