MDL-29016 allow distributions to set dataroot permissions
authorPetr Skoda <commits@skodak.org>
Sat, 20 Aug 2011 10:48:44 +0000 (12:48 +0200)
committerPetr Skoda <commits@skodak.org>
Sat, 20 Aug 2011 10:48:44 +0000 (12:48 +0200)
install.php

index 14b0665..eb7189f 100644 (file)
@@ -169,7 +169,7 @@ $CFG->admin                = $config->admin;
 $CFG->docroot              = 'http://docs.moodle.org';
 $CFG->langotherroot        = $CFG->dataroot.'/lang';
 $CFG->langlocalroot        = $CFG->dataroot.'/lang';
-$CFG->directorypermissions = 00777;
+$CFG->directorypermissions = isset($distro->directorypermissions) ? $distro->directorypermissions : 00777; // let distros set dir permissions
 $CFG->running_installer    = true;
 $CFG->early_install_lang   = true;