Fixed false "next" announcement when on "stable " release

This commit is contained in:
bergware
2018-03-29 14:59:12 +02:00
parent e42f16bf61
commit 1727b5e4f5

View File

@@ -22,10 +22,12 @@ $unraid = parse_plugin_cfg('dynamix', true);
$notify = "$docroot/webGui/scripts/notify";
$server = strtoupper($var['NAME']);
$output = $unraid['notify']['plugin'];
$builtin = ['unRAIDServer','unRAIDServer-'];
plugin('checkall');
foreach (glob("/tmp/plugins/*.plg", GLOB_NOSORT) as $file) {
$name = basename($file, '.plg');
if (in_array($name,$builtin)) continue;
$old = plugin('version', "/var/log/plugins/$name.plg");
$new = plugin('version', $file);
// silently suppress bad download of PLG file