Sha256: b495a6a2a3e344c0b6e0ced63013b5cb162e0f85de659abc50184542f7bdc32d

Contents?: true

Size: 449 Bytes

Versions: 44

Compression:

Stored size: 449 Bytes

Contents

#!/bin/sh
#
# A default scan wrapper for maldetect. Scans every local-looking filesystem.

for fs in `cat /etc/mtab | egrep -v ' (ext2|ext3|ext4) ' | cut -d' ' -f2`;do
	if ! grep "^$fs$" /usr/local/maldetect/ignore_paths;then
		echo "$fs" >> /usr/local/maldetect/ignore_paths
	fi
done

if ( ps auxww | grep -v grep | grep maldet );then
	echo "Not running maldet scan, a previous scan was already running"
	exit 1
fi
/usr/local/maldetect/maldet -a /

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
cloud-mu-2.0.0.pre.alpha3 cookbooks/mu-tools/templates/default/maldet_scanall.sh.erb
cloud-mu-2.0.0.pre.alpha2 cookbooks/mu-tools/templates/default/maldet_scanall.sh.erb
cloud-mu-2.0.0.pre.alpha cookbooks/mu-tools/templates/default/maldet_scanall.sh.erb
cloud-mu-1.9.0.pre.beta cookbooks/mu-tools/templates/default/maldet_scanall.sh.erb