From f848c0f6e60c4451a0058d87194f326bca690c1e Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Tue, 13 Sep 2011 13:33:06 +0200 Subject: [PATCH] MDL-29351 add missing temp and cache dirs to installers --- admin/cli/install.php | 2 ++ install.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/admin/cli/install.php b/admin/cli/install.php index 0dd5102e678..4b373820943 100644 --- a/admin/cli/install.php +++ b/admin/cli/install.php @@ -131,6 +131,8 @@ $CFG->libdir = "$CFG->dirroot/lib"; $CFG->wwwroot = "http://localhost"; $CFG->httpswwwroot = $CFG->wwwroot; $CFG->dataroot = str_replace('\\', '/', dirname(dirname(dirname(dirname(__FILE__)))).'/moodledata'); +$CFG->tempdir = $CFG->dataroot.'/temp'; +$CFG->cachedir = $CFG->dataroot.'/temp'; $CFG->docroot = 'http://docs.moodle.org'; $CFG->running_installer = true; $CFG->early_install_lang = true; diff --git a/install.php b/install.php index eb7189fee73..533c7aebd02 100644 --- a/install.php +++ b/install.php @@ -165,6 +165,8 @@ $CFG->libdir = "$CFG->dirroot/lib"; $CFG->wwwroot = install_guess_wwwroot(); // can not be changed - ppl must use the real address when installing $CFG->httpswwwroot = $CFG->wwwroot; $CFG->dataroot = $config->dataroot; +$CFG->tempdir = $CFG->dataroot.'/temp'; +$CFG->cachedir = $CFG->dataroot.'/temp'; $CFG->admin = $config->admin; $CFG->docroot = 'http://docs.moodle.org'; $CFG->langotherroot = $CFG->dataroot.'/lang'; -- 2.43.0