From 508d04f3371afc15403898815ee9ece361abcce9 Mon Sep 17 00:00:00 2001 From: Pat Dunlavey Date: Thu, 20 Apr 2017 16:14:14 -0400 Subject: [PATCH] chown multisite root - see https://github.com/Islandora-Collaboration-Group/drush-sitespinner/issues/6 --- sitespinner.drush.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/sitespinner.drush.inc b/sitespinner.drush.inc index 81fa0bc..456a14d 100644 --- a/sitespinner.drush.inc +++ b/sitespinner.drush.inc @@ -519,6 +519,7 @@ function sitespinner_create_site($destination_site_alias_record) { $setings_file_permissions = !empty($destination_site_alias_record['sitespinner-destination']['server-environment']['settings_file_permissions']) ? $destination_site_alias_record['sitespinner-destination']['server-environment']['settings_file_permissions'] : SITESPINNER_SETTINGS_PERMS; + sitespinner_exec("sudo chown " . $default_user . ":" . $default_group . " " . $multisite_root); sitespinner_exec("sudo mkdir " . $destination_files_directory); sitespinner_exec("sudo chmod " . $files_directory_permissions . " " . $destination_files_directory); sitespinner_exec("sudo chown " . $default_user . ":" . $default_group . " " . $destination_files_directory);