mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 18:36:42 +02:00
MDL-31166 do not try to cleanup data root paths in CLI install script
PARAM_TYPE can not be used for full OS paths. Admins have to enter correct data there, if not they get directory creation error.
This commit is contained in:
parent
11f06bd7f6
commit
401dc2429f
1 changed files with 1 additions and 6 deletions
|
@ -337,12 +337,7 @@ $CFG->httpswwwroot = $CFG->wwwroot;
|
||||||
|
|
||||||
|
|
||||||
//We need dataroot before lang download
|
//We need dataroot before lang download
|
||||||
$dataroot = clean_param($options['dataroot'], PARAM_PATH);
|
$CFG->dataroot = $options['dataroot'];
|
||||||
if ($dataroot !== $options['dataroot']) {
|
|
||||||
$a = (object)array('option' => 'dataroot', 'value' => $options['dataroot']);
|
|
||||||
cli_error(get_string('cliincorrectvalueerror', 'admin', $a));
|
|
||||||
}
|
|
||||||
$CFG->dataroot = $dataroot;
|
|
||||||
if ($interactive) {
|
if ($interactive) {
|
||||||
cli_separator();
|
cli_separator();
|
||||||
$i=0;
|
$i=0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue