forked from srugano/ojs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.php
More file actions
39 lines (32 loc) · 923 Bytes
/
Copy pathinstall.php
File metadata and controls
39 lines (32 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* @file tools/install.php
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @class OJSInstallTool
*
* @ingroup tools
*
* @brief CLI tool for installing OJS.
*/
require(dirname(__FILE__) . '/bootstrap.php');
class OJSInstallTool extends \PKP\cliTool\InstallTool
{
/**
* Read installation parameters from stdin.
* FIXME: May want to implement an abstract "CLIForm" class handling input/validation.
* FIXME: Use readline if available?
*/
public function readParams()
{
printf("%s\n", __('installer.appInstallation'));
parent::readParams();
$this->readParamBoolean('install', 'installer.installApplication');
return $this->params['install'];
}
}
$tool = new OJSInstallTool($argv ?? []);
$tool->execute();