bashscripts/scan_rkh.sh

15 lines
289 B
Bash

#!/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
sh ./gotifypush.sh "RKH Scan handycat cloud" "$OUT" 5 $TOKEN
else
echo "[rkhunter] system clean"
fi