Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.When downloading modules to extend Aegir hostmaster, typically users would use "drush dl" command.
By default, this sets the destination to "sites/all/modules".
However, when upgrading, the platform is rebuilt, so hostmaster modules in sites/all/modules are lost. Most users don't know this, it never warns them.
I tried, and if you add "destination" => "sites/hostmaster.com/modules" to the hostmaster alias, drush dl commands automatically go there.
Let's add this to the hostmaster alias so it's a little easier to extend.










Comments
Comment #2
colanThis is a much better idea than my usual:
drush @hm dl --destination=$(drush dd @hm:%site)/modules/contribComment #3
helmo CreditAttribution: helmo as a volunteer commentedSounds like a great idea
Comment #5
Jon PughThat should do it?
Comment #6
Jon PughUhhh...
Just discovered
--use-site-diroption. Maybe that's better?Comment #7
Jon PughYeah, --use-site-dir works great.
Comment #9
Jon PughComment #11
helmo CreditAttribution: helmo as a volunteer commentedYour code only worked on new installations ... I've now committed the same change in migrate.hostmaster.inc
Test pipeline running in https://gitlab.com/aegir/provision/pipelines/38810538
Comment #12
helmo CreditAttribution: helmo as a volunteer commentedmerged