Commit dacf0504 authored by anarcat's avatar anarcat Committed by Antoine Beaupre

optimisation: do not recursively change files under files/ as they are already covered by files/

parent e93fbeb8
......@@ -231,18 +231,9 @@ function _provision_drupal_create_directories($url, $profile = NULL) {
// special case: platform. do not handle files dir
if ($url != 'all') {
$mkdir["sites/$url/files"] = 02770;
$mkdir["sites/$url/files/tmp"] = 02770;
$mkdir["sites/$url/files/images"] = 02770;
$mkdir["sites/$url/files/pictures"] = 02770;
# the owner/group of those directories will be changed
$chown["sites/$url/files"] = drush_get_option('script_user');
$chown["sites/$url/files/tmp"] = drush_get_option('script_user');
$chown["sites/$url/files/images"] = drush_get_option('script_user');
$chown["sites/$url/files/pictures"] = drush_get_option('script_user');
$chgrp["sites/$url/files"] = drush_get_option('web_group');
$chgrp["sites/$url/files/tmp"] = drush_get_option('web_group');
$chgrp["sites/$url/files/images"] = drush_get_option('web_group');
$chgrp["sites/$url/files/pictures"] = drush_get_option('web_group');
}
foreach ($mkdir as $path => $perm) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment