Commit 6c3a8eac authored by Adrian Rossouw's avatar Adrian Rossouw

Recursively change group file ownership after extracting a site directory....

Recursively change group file ownership after extracting a site directory. http://drupal.org/node/884090
parent 7f75ca33
......@@ -51,6 +51,11 @@ function drush_provision_drupal_pre_provision_deploy($backup_file) {
->fail('Failed to extract the contents of @path to @target', 'PROVISION_BACKUP_EXTRACTION_FAILED')
->status();
if ($extracted) {
// Make sure the files in the files directory are accessible by the web server.
provision_file()->chgrp(drush_get_option('extract_path') . '/files', d('@server_master')->web_group, TRUE)
->succeed('Changed group ownership of files in <code>@path</code> to @gid')
->fail('Could not change group ownership of files in <code>@path</code> to @gid');
if (drush_get_option('deploy_replace_site', FALSE)) {
$old = d()->site_path . '.restore';
$new = d()->site_path;
......
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