fix(plugin): raise minimum unraid os version to 6.12.15 (#1649)

This commit is contained in:
Pujit Mehrotra
2025-09-03 15:20:24 -04:00
committed by GitHub
parent 7c3aee8f3f
commit bc15bd3d70

View File

@@ -16,7 +16,7 @@
]> ]>
<PLUGIN name="&name;" author="&author;" version="&version;" pluginURL="&plugin_url;" <PLUGIN name="&name;" author="&author;" version="&version;" pluginURL="&plugin_url;"
launch="&launch;" min="6.9.0-rc1" icon="globe"> launch="&launch;" min="6.12.15" icon="globe">
<CHANGES> <CHANGES>
##a long time ago in a galaxy far far away ##a long time ago in a galaxy far far away
@@ -61,19 +61,19 @@ exit 0
$version = @parse_ini_file('/etc/unraid-version', true)['version']; $version = @parse_ini_file('/etc/unraid-version', true)['version'];
// Check if this is a supported version // Check if this is a supported version
// - Must be 6.12.0 or higher // - Must be 6.12.15 or higher
// - Must not be a 6.12.0 beta/rc version // - Must not be a 6.12.15 beta/rc version
$is_stable_6_12_or_higher = version_compare($version, '6.12.0', '>=') && !preg_match('/^6\\.12\\.0-/', $version); $is_stable_6_12_or_higher = version_compare($version, '6.12.15', '>=') && !preg_match('/^6\\.12\\.0-/', $version);
if ($is_stable_6_12_or_higher) { if ($is_stable_6_12_or_higher) {
echo "Running on supported version {$version}\n"; echo "Running on supported version {$version}\n";
exit(0); exit(0);
} }
echo "Warning: Unsupported Unraid version {$version}. This plugin requires Unraid 6.12.0 or higher.\n"; echo "Warning: Unsupported Unraid version {$version}. This plugin requires Unraid 6.12.15 or higher.\n";
echo "The plugin may not function correctly on this system.\n"; echo "The plugin will not function correctly on this system.\n";
exit(0); exit(1);
]]> ]]>
</INLINE> </INLINE>
</FILE> </FILE>