switch before_script to before_install and script to install
minor #11826 switch before_script to before_install and script to install (cordoval)

This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #11826).

Discussion
----------

switch before_script to before_install and script to install

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Commits
-------

e2ee13a switch before_script to before_install and script to install