mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Check for nanobsd in the filename for nanobsd upgrades since it is not a tar gzipped file similar to the full upgrades.
This commit is contained in:
parent
6160967a1e
commit
d79be80ddb
@ -55,6 +55,12 @@ function file_is_for_platform($filename) {
|
||||
if(!file_exists("/tmp/etc/platform"))
|
||||
return false;
|
||||
$upgrade_is_for_platform = trim(file_get_contents("/tmp/etc/platform"));
|
||||
if($upgrade_is_for_platform == "nanobsd") {
|
||||
if(strstr($filename, "nanobsd"))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
if($g['platform'] == $upgrade_is_for_platform) {
|
||||
unlink("/tmp/etc/platform");
|
||||
return true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user