public function xSzrUpdateAction() { if (!$this->getParam('serverId')) { throw new Exception(_('Server not found')); } $dbServer = DBServer::LoadByID($this->getParam('serverId')); $this->user->getPermissions()->validate($dbServer); $updateClient = new Scalr_Net_Scalarizr_UpdateClient($dbServer); $status = $updateClient->updateScalarizr(); $this->response->success('Scalarizr successfully updated to the latest version'); }
public function xSzrUpdateAction() { if (!$this->getParam('serverId')) { throw new Exception(_('Server not found')); } $dbServer = DBServer::LoadByID($this->getParam('serverId')); $this->user->getPermissions()->validate($dbServer); $port = $dbServer->GetProperty(SERVER_PROPERTIES::SZR_UPDC_PORT); if (!$port) { $port = 8008; } $updateClient = new Scalr_Net_Scalarizr_UpdateClient($dbServer, $port, 100); $status = $updateClient->updateScalarizr(); $this->response->success('Scalarizr successfully updated to the latest version'); }