The instructions for installing Aegir 6.x-0.3 include an environment variable as follows:

export DRUSH=/var/aegir/drush/drush.php

A few lines later, the instructions provide for the installation of provision with the following:

$DRUSH dl provision --destination=.drush

This does not work. Debian Lenny throws the following error;

sh: dl: command not found

However, after changing the environment variable to:

export DRUSH=/var/aegir/drush/drush

provision was successfully downloaded.

Comments

Anonymous’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

It's not incorrect.

If your error is sh: dl: command not found, that means the $DRUSH variable was not set at all. it was empty. You may have forgotten to export it or you tried to export it with spaces between the = sign or something that caused it to not be set.

/var/aegir/drush/drush and /var/aegir/drush/drush.php are two separate files. Both should work, but the first one is not incorrect.

Th30philus’s picture

Status: Postponed (maintainer needs more info) » Fixed

I'm not exactly sure what happened, but it seems to be working now. Thanks.

guypaddock’s picture

Status: Fixed » Active

Actually, it is wrong. According to #586466: Drush.php is no longer directly executable (can interfere with backend invoke) (which was included in Drush 2.1) it is improper to call drush.php directly. The shebang line has been removed, so executing it directly causes the shell to try and run it as an sh script, which can lead to some really strange errors.

Anonymous’s picture

Status: Active » Closed (won't fix)

yeah, and that's why 2.1 caused so many issues with 6.x-0.3 (when 6.x-0.3 came out, Drush 2.0 was the current stable release).

Since Aegir 6.x-0.3, i.e in the 6.x-0.4 release, the INSTALL.txt does not even export environment variables, everything is done with the install.sh script, and in 6.x-0.4 we are only compatible with Drush 3.x .

This is a won't fix since there won't be any more incremental releases of the 0.3 Aegir version, and the problem is obsolete in 0.4. People who want to stick with 6.x-0.3 should probably stick with the Drush 2.0 release and copy and paste the wget command from the INSTALL.txt. Thanks for pointing it out though.