Aegir developer cheat sheet
Table of Contents
1. Locations and paths
- Site URI: d()->uri
- Drupal root: d()->site
- Site path: d()->site_path
2. File permissions and ownership
$ctools_path = d()->site_path . '/files/ctools';
provision_file()->chmod($ctools_path, 0770, TRUE)
->succeed('Changed permissions of @path
@path
to @perm')
->status();
provision_file()->chgrp($ctools_path, d('@server_master')->web_group, TRUE)
->succeed('Change group ownership of settings.php to @path')
->fail('Could not change group ownership of settings.php to @path')
->status();