(Using 0.4-alpha7)
When I migrate or clone a site, the files directory permission is set to the aegir user and not owned by the webserver until /after/ the verify is run.
When migrating a platform of sites this becomes a problem as the first verify doesn't run until all the migrations have completed. When dealing with large numbers of sites this could mean that sites are only partially useable (without the proper permission on files/) for several hours.
If the migration set the permissions on the files directory after it completed then this wouldn't be an issue.
Thanks!
- Scott
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | provision_823978.patch | 501 bytes | hadsie |
Comments
Comment #1
hadsie commentedComment #2
hadsie commentedThe attached patch adds the directory and alias creation functions that I think are needed to make this happen.
Comment #3
anarcat commentedI think the patch is good, but a bad idea: I would rather see migrate run verify directly instead of queueing it. Why isn't it already like this?
Comment #4
adrian commentedThinking about it, we're in a good place now to do that.
Now to decide wether it goes into post deploy or post migrate ('im thinking the latter')
Comment #5
hadsie commentedyeah, that makes better sense. though if verify fails for some reason will that cause any issues with rolling back the migration?
Comment #6
adrian commentedI fixed this in head in the manner described.
it also will roll back completely if verification fails now.