File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -812,6 +812,7 @@ Below is the complete list of available options that can be used to customize yo
812
812
| ` GITLAB_PROJECTS_SNIPPETS ` | Set if * snippets* feature should be enabled by default for new projects. Defaults to ` false ` . |
813
813
| ` GITLAB_PROJECTS_BUILDS ` | Set if * builds* feature should be enabled by default for new projects. Defaults to ` true ` . |
814
814
| ` GITLAB_PROJECTS_CONTAINER_REGISTRY ` | Set if * container_registry* feature should be enabled by default for new projects. Defaults to ` true ` . |
815
+ | ` GITLAB_SHELL_CUSTOM_HOOKS_DIR ` | Global custom hooks directory. Defaults to ` /home/git/gitlab-shell/hooks ` . |
815
816
| ` GITLAB_WEBHOOK_TIMEOUT ` | Sets the timeout for webhooks. Defaults to ` 10 ` seconds. |
816
817
| ` GITLAB_NOTIFY_ON_BROKEN_BUILDS ` | Enable or disable broken build notification emails. Defaults to ` true ` |
817
818
| ` GITLAB_NOTIFY_PUSHER ` | Add pusher to recipients list of broken build notification emails. Defaults to ` false ` |
Original file line number Diff line number Diff line change @@ -505,6 +505,9 @@ GITALY_TOKEN=${GITALY_TOKEN:-}
505
505
GITALY_SOCKET_PATH=${GITLAB_INSTALL_DIR} /tmp/sockets/private/gitaly.socket
506
506
GITALY_ADDRESS=${GITALY_ADDRESS:- unix: $GITALY_SOCKET_PATH }
507
507
508
+ # # GitLab Shell
509
+ GITLAB_SHELL_CUSTOM_HOOKS_DIR=${GITLAB_SHELL_CUSTOM_HOOKS_DIR:- " $GITLAB_SHELL_INSTALL_DIR /hooks" }
510
+
508
511
# # MONITORING
509
512
GITLAB_MONITORING_UNICORN_SAMPLER_INTERVAL=${GITLAB_MONITORING_UNICORN_SAMPLER_INTERVAL:- 10}
510
513
GITLAB_MONITORING_IP_WHITELIST=${GITLAB_MONITORING_IP_WHITELIST:- " 0.0.0.0/8" }
Original file line number Diff line number Diff line change @@ -1721,6 +1721,13 @@ configure_gitlab_shell() {
1721
1721
REDIS_HOST \
1722
1722
REDIS_PORT \
1723
1723
REDIS_DB_NUMBER
1724
+
1725
+ # update custom_hooks_dir if set $GITLAB_SHELL_CUSTOM_HOOKS_DIR
1726
+ if [[ -n ${GITLAB_SHELL_CUSTOM_HOOKS_DIR} ]]; then
1727
+ exec_as_git sed -i \
1728
+ " s|custom_hooks_dir:.*|custom_hooks_dir: $GITLAB_SHELL_CUSTOM_HOOKS_DIR |g" \
1729
+ ${GITLAB_SHELL_CONFIG}
1730
+ fi
1724
1731
}
1725
1732
1726
1733
You can’t perform that action at this time.
0 commit comments