System update (installation)
This commit is contained in:
parent
a5baeebd84
commit
c5a1f4e5ab
3 changed files with 2 additions and 4 deletions
|
@ -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)))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue