community.aegirproject.org
Aegir developer cheat sheet
Table of Contents
1. Locations and paths
- Site URI: d()->uri; // ex: $base_url = 'http://' . d()->uri;
- Drupal root: d()->site // returns: /var/aegir/platform/drupal-6.20/
- Site path: d()->site_path // returns: /var/aegir/platform/drupal-6.20/sites/example.org/
2. File permissions and ownership
$ctools_path = d()->site_path . '/files/ctools'; provision_file()->chmod($ctools_path, 0770, TRUE) ->succeed('Changed permissions of@path
to @perm') ->fail('Could not change permissions@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();