Last Updated: February 25, 2016
·
1.553K
· grobot

steal aegir's drush aliases

Aegir has a bunch of Drush aliases, but you can't bring yourself to share a single user a/c with a lowly daemon?

Neither. Steal that mofo's aliases. Drop this in your ~/.drush/aliases.drushrc.php or /etc/drush/aliases.drushrc.php -

<?php
/**
 * Aegir user has the alias swag. Let's have all that.
 * http://giantrobot.co.nz/node/899
 */
global $aliases;
foreach(glob('/var/aegir/.drush/*alias.drushrc.php') as $aegir_alias) {
  require_once($aegir_alias);
}

Permissions problems? You'll work it out. I know you can.