Commit 3fd5fa0d authored by mig5's avatar mig5 Committed by mig5

#536100 by anarcat - add libraries folder to sites/all and sites/. see...

#536100 by anarcat - add libraries folder to sites/all and sites/. see http://drupal.org/node/496240
parent 6543b7e3
......@@ -225,6 +225,7 @@ function _provision_drupal_create_directories($url, $profile = NULL) {
"sites/$url/files/pictures" => 02770,
"sites/$url/themes" => 0755,
"sites/$url/modules" => 0755,
"sites/$url/libraries" => 0755, # http://drupal.org/node/496240
);
$grps = array(
"sites/$url/files",
......
......@@ -54,6 +54,24 @@ function drush_provision_drupal_provision_verify($url = null) {
_provision_drupal_create_settings_file($url);
}
$paths = array(
"sites/all/themes" => 0755,
"sites/all/modules" => 0755,
"sites/all/libraries" => 0755, # http://drupal.org/node/496240
);
foreach ($paths as $path => $perm) {
if (!is_dir($path)) {
provision_path("mkdir", $path, TRUE,
dt("Created <code>@path</code>"),
dt("Could not create <code>@path</code>"),
'DRUSH_PERM_ERROR');
}
provision_path("chmod_recursive", $path, $perm,
dt("Changed permissions of <code>@path</code> to @confirm"),
dt("Could not change permissions of <code>@path</code> to @confirm"),
'DRUSH_PERM_ERROR');
}
}
......
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