mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-25 06:36:06 +03:00
installation fix
This commit is contained in:
parent
41da8fe862
commit
ce07e06b55
@ -112,19 +112,19 @@ class RoboFile extends \Robo\Tasks
|
|||||||
$this->printTaskError("<error> Could not connect ot database...");
|
$this->printTaskError("<error> Could not connect ot database...");
|
||||||
}
|
}
|
||||||
|
|
||||||
$install_code = file_get_contents($this->root_dir . 'www/install/cli_install.php');
|
if (version_compare(getenv('OPENCART'), '3.0.2.0', '<=')) {
|
||||||
$storage = <<<EOF
|
$install_code = file_get_contents($this->root_dir . 'www/install/cli_install.php');
|
||||||
|
$storage = <<<EOF
|
||||||
define('DIR_MODIFICATION', DIR_SYSTEM . 'modification/');
|
define('DIR_MODIFICATION', DIR_SYSTEM . 'modification/');
|
||||||
if (!defined('DIR_STORAGE')) {
|
define('DIR_STORAGE', DIR_SYSTEM . 'storage/');
|
||||||
define('DIR_STORAGE', DIR_SYSTEM . 'storage/');
|
|
||||||
}
|
|
||||||
|
|
||||||
EOF;
|
EOF;
|
||||||
|
|
||||||
file_put_contents(
|
file_put_contents(
|
||||||
$this->root_dir . 'www/install/cli_install.php',
|
$this->root_dir . 'www/install/cli_install.php',
|
||||||
str_replace("define('DIR_MODIFICATION', DIR_SYSTEM . 'modification/');", $storage, $install_code)
|
str_replace("define('DIR_MODIFICATION', DIR_SYSTEM . 'modification/');", $storage, $install_code)
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
$install = $this->taskExec('php')->arg($this->root_dir . 'www/install/cli_install.php')->arg('install');
|
$install = $this->taskExec('php')->arg($this->root_dir . 'www/install/cli_install.php')->arg('install');
|
||||||
foreach ($this->opencart_config as $option => $value) {
|
foreach ($this->opencart_config as $option => $value) {
|
||||||
|
Loading…
Reference in New Issue
Block a user