* [misc] add installDuckdb.

This commit is contained in:
qixinzhi
2024-07-08 13:16:59 +08:00
committed by 刘刚
parent 5932c5fad0
commit cae88e96d1
+15
View File
@@ -99,6 +99,10 @@ class install extends control
$this->view->dataRootResult = $this->installZen->checkDataRoot();
$this->view->iniInfo = $this->install->getIniInfo();
$checkDuckdb = $this->updateDownloadingTagFile('file', 'check');
$checkExtension = $this->updateDownloadingTagFile('extension', 'check');
$this->view->duckdbResult = $checkDuckdb == 'ok' && $checkExtension == 'ok' ? 'ok' : 'fail';
$checkSession = ini_get('session.save_handler') == 'files';
$this->view->sessionResult = 'ok';
$this->view->checkSession = $checkSession;
@@ -622,4 +626,15 @@ class install extends control
$result = $this->loadModel('cne')->tryAllocate($resources);
return $this->send(array('result' => 'success', 'message' => '', 'code' => $result->code));
}
public function installDuckdb($download = false)
{
$this->updateDownloadingTagFile('file', 'remove');
$this->updateDownloadingTagFile('extension', 'remove');
$this->view->title = $lang->install->installDuckdb;
$this->view->duckdbStatus = 'loading';
$this->view->extensionStatus = 'loading';
$this->display();
}
}