Commit 33b3a350 authored by Adrian Rossouw's avatar Adrian Rossouw Committed by adrian

#327888 - permissions problem during install.

parent efa382de
......@@ -469,6 +469,7 @@ function provision_drupal_send_welcome_mail($url, $profile, $language, $client_e
* implementation of provision_verify
*/
function provision_drupal_provision_verify($url, &$data) {
_provision_drupal_create_directories('default');
provision_path("writable", "sites", TRUE, t("Drupal sites directory is writable by the provisioning script"),
t("Drupal sites directory is not writable by the provisioning script"), PROVISION_PERM_ERROR);
$exists = _provision_create_dir(PROVISION_DRUSHRC_PATH, t('Drush configuration path'), 0700);
......
......@@ -182,7 +182,10 @@ function _provision_config_defaults() {
*/
function _provision_generate_config($data = array()) {
provision_log('notice', t("Generating provision.settings.php file"));
provision_path("chmod", "sites/default", 0750);
// We are doing a system call here to ensure we can write to the file
// and we don't need logging or the overhead of provision_path on this
system('chmod u+wx sites/default');
if (provision_path("exists", "sites/default/provision.settings.php")) {
provision_path("chmod", "sites/default/provision.settings.php", 0600,
t('Changed permissions of provision.settings.php to @confirm'),
......@@ -199,7 +202,6 @@ function _provision_generate_config($data = array()) {
provision_path("chmod", "sites/default/provision.settings.php", 0400,
t('Changed permissions of provision.settings.php to @confirm'),
t('Could not change permissions of provision.settings.php to @confirm'));
provision_path("chmod", "sites/default", 0550);
return TRUE;
}
......
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