System update (installation)

This commit is contained in:
markseu 2017-07-02 13:58:44 +02:00
parent a5baeebd84
commit c5a1f4e5ab
3 changed files with 2 additions and 4 deletions

View file

@ -328,7 +328,6 @@ class YellowUpdate
$this->yellow->page->error($statusCode, "Can't delete file '$entry'!");
}
}
$statusCode = max($statusCode, $this->updateSoftwareNotification("YellowUpdate"));
return $statusCode;
}
@ -492,9 +491,8 @@ class YellowUpdate
{
$statusCode = 200;
$startupUpdate = $this->yellow->config->get("startupUpdate");
if($startupUpdate=="none") $startupUpdate = "";
if(!empty($startupUpdate)) $startupUpdate .= ",";
$startupUpdate .= $software;
if($startupUpdate=="none") $startupUpdate = "YellowUpdate";
if($software!="YellowUpdate") $startupUpdate .= ",$software";
$fileNameConfig = $this->yellow->config->get("configDir").$this->yellow->config->get("configFile");
if(!$this->yellow->config->update($fileNameConfig, array("startupUpdate" => $startupUpdate)))
{