mirror of
https://github.com/unraid/webgui.git
synced 2026-03-09 04:21:27 -05:00
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:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user