How do I create global custom hooks?


I am having trouble setting up global custom hooks in GitLab 11.11.2-ee.

The documentation says to edit the hooks in this location: /opt/gitlab/embedded/service/gitlab-shell/hooks

However when you open any of the hooks they have the following content:
echo “The gitlab-shell hooks have been migrated to Gitaly, see
exit 1

Is the documentation out of date? Is there a new way to set up global hooks?