I've aegir running on my virtual server. I also have a devel site on the server not on one of the aegir platforms. I downloaded and installed a new version of drush for installing modules on the devel site, renamed it "drushd" and dropped it into /usr/sbin and symlinked it to the new drush script in my home directory.
But I found when I ran "drushd" to download files, I was still forced to run as user "aegir" and even then files downloaded with "drush dl" were getting dumped in /var/aegir. In short, aegir's version of drush was overriding my own.
I finally got around this by hacking command.inc and setting $searchpath[1] = ''; on line 998. This stopped drushd from looking aegir's directory for commands.
So what's the proper way to do this?
Comments
Comment #1
Steve Dondley commentedadded question mark to title
Comment #2
greg.1.anderson commentedRead the README.txt file and examples/example.drushrc.php. Currently your "drushd" version of drush is loading config files from the same place that Aegir is. Maybe Aegir has config files in /etc/drush. Run
drush statusto find out where drush is loading config files from. Also, look at examples/example.aliases.drushrc.php and set up some site aliases for your different sites. With a correctly-configured site alias,drush @mysite dl somemodulewill download into your site directory. Of course, if Aegir has set $options['destination'] in one of its config files, that will take precidence.