mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Avoid logging when sync is unnecessary due to cronjob log output spam
This commit is contained in:
@@ -241,7 +241,7 @@ function syncAll() {
|
||||
staleCount=$(echo "select count(*) from identity_credentials where updated_at >= Datetime('now', '-${usersFileAgeSecs} seconds');" \
|
||||
| sqlite3 "$databasePath")
|
||||
if [[ "$staleCount" == "0" ]]; then
|
||||
fail "Users are already in sync. Run 'FORCE_SYNC=1 $0 sync' to force a full sync anyway."
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
syncElastic
|
||||
|
||||
Reference in New Issue
Block a user