Path : /etc/cpguard/scripts/ |
Current File : //etc/cpguard/scripts/modsec-scan.sh |
#!/bin/bash FILE=$1 > /dev/null OUTPUT=`/etc/cpguard/scripts/fscanfile $FILE` > /dev/null echo $OUTPUT | grep "CPGCRITICAL" > /dev/null if [ $? -eq 0 ]; then output="0 cPGuard: $OUTPUT" else output="1 cPGuard: OK" fi echo $output