From 8b5f058a2e63cffc63fa3f8f823baecde34ab4d2 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 18 Jun 2021 12:57:09 +0100 Subject: [PATCH] unauthorized script --- scripts/unauthorized | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 scripts/unauthorized diff --git a/scripts/unauthorized b/scripts/unauthorized new file mode 100755 index 000000000..1c6df0eb0 --- /dev/null +++ b/scripts/unauthorized @@ -0,0 +1,7 @@ +#!/bin/bash +journalctl -u epicyon | grep 'getJson Unauthorized ' > .unauthorized.txt +if [ ! -f .unauthorized.txt ]; then + echo 'No unauthorized events' +else + cat .unauthorized.txt +fi