diff options
author | mboelen <michael@cisofy.com> | 2014-10-02 17:15:19 +0400 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2014-10-02 17:15:19 +0400 |
commit | 231582ac534f4608fbf3cd5056adcd65be547bb9 (patch) | |
tree | a4f59a6d192e27f9504f7f416ae7e8b645412272 /extras/check-lynis.sh | |
parent | 52fe3b68ba8ca369ac9fc121c5f8746fa3983304 (diff) |
Added systemd service script and timer (as replacement for cronjob)
Diffstat (limited to 'extras/check-lynis.sh')
-rwxr-xr-x | extras/check-lynis.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extras/check-lynis.sh b/extras/check-lynis.sh new file mode 100755 index 00000000..855f3577 --- /dev/null +++ b/extras/check-lynis.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +# Check for double ID numbers +grep -r Register .. | awk '{ if($2=="Register") { print $4 } }' | sort | uniq -c | awk '{ if ($1!=1) { print $2 } }' |