Get rid of once-per-week check of SMART database update since it does not work and besides is a possible

exploit vector:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=804299
This commit is contained in:
Tom Mortensen
2016-03-25 10:53:28 -07:00
parent 13384a5e64
commit 99a4df5fc2

View File

@@ -195,11 +195,6 @@ function check_usage($name,$used,$text,$info) {
}
}
// check once a week for smart database updates
$smartDB = '/usr/share/smartmontools/drivedb.h.lastcheck';
$interval = 3600*24*7; // one week
if (!file_exists($smartDB) || (time()-filemtime($smartDB)>=$interval)) exec('/usr/sbin/update-smart-drivedb 1>/dev/null 2>&1');
// check array devices
foreach ($disks as $disk) {
$name = $disk['name'];