feat: sudo и notify_send шлют события в SAC (dual)

This commit is contained in:
2026-05-27 11:01:47 +10:00
parent a58027ed9b
commit 52654e2735
2 changed files with 42 additions and 9 deletions
+8 -8
View File
@@ -170,15 +170,15 @@ notify_or_sac() {
sac_send_event "$event_type" "$severity" "$title" "$summary"
;;
dual)
sac_send_event "$event_type" "$severity" "$title" "$summary" || true
notify_send "$telegram_message"
;;
sac_send_event "$event_type" "$severity" "$title" "$summary" || true
NOTIFY_SKIP_SAC_MIRROR=1 notify_send "$telegram_message"
;;
fallback)
if sac_send_event "$event_type" "$severity" "$title" "$summary"; then
return 0
fi
notify_send "$telegram_message"
;;
if sac_send_event "$event_type" "$severity" "$title" "$summary"; then
return 0
fi
NOTIFY_SKIP_SAC_MIRROR=1 notify_send "$telegram_message"
;;
*)
write_log "WARN: неизвестный UseSAC=$mode, только Telegram"
notify_send "$telegram_message"