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 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 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 commentedmerged