Execute a custom shell script before the aegir verify
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