Every actions in aegir trigger a verify.

I would like to automatically execute a shell script before that verify (rsync of plateforms).

How could I proceed ?


You could implement a drush_hook_pre_COMMAND() hook in drush to run any code you'd like.

See the docs page for more details: https://docs.aegirproject.org/extend/altering-behaviours/#running-extra-code-after-a-task

  • 1
    This is a post_verify command : drush_server_data_post_provision_verify() { }. is there a pre-verify ? or what is the command just before verify to do a post_{thatCommand} ?
    – Matoeil
    Jan 21 '20 at 14:36
  • 2
    Drush automatically offers a ton of these hooks ... where the example says 'post' you can enter 'pre'. See the example module for more inspiration. 'server_data' would be the name of your drupal module in this case. Jan 21 '20 at 14:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.