feat(diagnostics): add read-only WireGuard health checks

This commit is contained in:
2026-10-13 21:37:47 +03:00
parent 75f7547add
commit 67a9e3fe03
10 changed files with 553 additions and 8 deletions
+4
View File
@@ -11,5 +11,9 @@ fi
if [[ $# == 0 && "$allow_empty" == "$command_name" ]]; then
exit 0
fi
if [[ $# == 5 && $1 == -u && $2 == wg-quick@${WG_MOCK_INTERFACE:-wg0} && $3 == --since && $4 == '24 hours ago' && $5 == --no-pager ]]; then
[[ ${DIAG_JOURNAL_FAIL:-0} == 1 ]] && exit 98
printf '%s\n' "${DIAG_JOURNAL_OUTPUT:-}"; exit 0
fi
printf 'Unexpected mock invocation: %s received arguments\n' "$command_name" >&2
exit 99