Skip to content

Commit

Permalink
Fix error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRuiz7 committed Mar 7, 2024
1 parent 1acd27e commit 1e5133b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/r_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ jobs:
- run: sudo systemctl daemon-reload
- run: |
if sudo systemctl enable wazuh-indexer.service; then
sudo journalctl --no-pager -u wazuh-indexer.service
exit 1
if ! sudo systemctl enable wazuh-indexer.service; then
sudo journalctl --no-pager -u wazuh-indexer.service
exit 1
fi
- run: |
if sudo systemctl start wazuh-indexer; then
if ! sudo systemctl start wazuh-indexer; then
sudo journalctl --no-pager -u wazuh-indexer.service
exit 1
fi
- run: |
if sudo systemctl status wazuh-indexer; then
if ! sudo systemctl status --no-pager wazuh-indexer -n 100; then
sudo journalctl --no-pager -u wazuh-indexer.service
exit 1
fi

0 comments on commit 1e5133b

Please sign in to comment.