Merge syncing and combining logs into one cronjob

This should prevent race conditions of the form that logs are attempted
to be combined while syncing those of individual hosts hasn't finished.

Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
Nils Philippsen 2021-08-30 15:41:04 +02:00 committed by nphilipp
parent a766ec6416
commit ecd8ab8383
3 changed files with 31 additions and 5 deletions

View file

@ -0,0 +1,7 @@
#!/bin/bash
# Don't attempt to combine if syncing the individual logs failed.
set -e
/usr/local/bin/sync-http-logs.py
/usr/local/bin/combineHttpLogs.sh