bashscripts/scan_rkh.sh

15 lines
289 B
Bash
Raw Normal View History

2022-09-29 12:27:20 +02:00
#!/bin/bash
PATH=$PATH:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
#vars rkhunter
readonly TOKEN="<TOKEN_GOTIFY_APP>"
OUT=$(rkhunter -c -sk --rwo)
if [ -n "$OUT" ]
then
2023-01-21 01:18:34 +01:00
sh ./gotifypush.sh "RKH Scan handycat cloud" "$OUT" 5 $TOKEN
2022-09-29 12:27:20 +02:00
else
echo "[rkhunter] system clean"
fi