Permalink
Browse files

Whoops, chmod not chown

  • Loading branch information...
1 parent 718ad19 commit b369ff55fe72a93662d378e6116e911097948802 moodler committed Apr 21, 2003
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/db/mysql.php
  2. +1 −1 lib/db/postgres7.php
View
@@ -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);
}
}
}
@@ -56,7 +56,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);
}
}
}

0 comments on commit b369ff5

Please sign in to comment.