Commit 335e4f3a authored by anarcat's avatar anarcat

move platforms dir creation away from server verification

this is a tentative fix for #1735174. the rationale is that the
platforms directory is necessary only when we verify platforms, not
the server. the platforms directory may not be managed by aegir, for
example in slaves in pack mode
parent f895816e
......@@ -96,11 +96,6 @@ class Provision_Service_http_public extends Provision_Service_http {
$this->sync($this->server->http_vhostd_path, array(
'exclude' => $this->server->http_vhostd_path . '/*', // Make sure remote directory is created
));
provision_file()->create_dir($this->server->http_platforms_path, dt("Platforms"), 0755);
$this->sync($this->server->http_platforms_path, array(
'exclude' => $this->server->http_platforms_path . '/*', // Make sure remote directory is created
));
}
parent::verify_server_cmd();
......
......@@ -96,6 +96,10 @@ function drush_provision_drupal_provision_install_backend() {
* finishing operations that affect the filesystem.
*/
function provision_drupal_sync_site() {
provision_file()->create_dir(d()->service('http')->server->http_platforms_path, dt("Platforms"), 0755);
d()->server->sync(d()->server->http_platforms_path, array(
'exclude' => d()->server->http_platforms_path . '/*', // Make sure remote directory is created
));
d()->service('http')->sync(d()->root, array('exclude-sites' => TRUE));
if (d()->type === 'site') {
// Sync all filesystem changes to the remote server.
......
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