mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Whoops, chmod not chown
This commit is contained in:
parent
718ad19f47
commit
b369ff55fe
2 changed files with 2 additions and 2 deletions
|
@ -281,7 +281,7 @@ function main_upgrade($oldversion=0) {
|
|||
echo "Attempting to update permissions for all files... ignore any errors.";
|
||||
foreach ($files as $file) {
|
||||
echo "$CFG->dataroot/$file<br>";
|
||||
@chown("$CFG->dataroot/$file", $CFG->directorypermissions);
|
||||
@chmod("$CFG->dataroot/$file", $CFG->directorypermissions);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue