Skip to content

Commit 5466c0d

Browse files
authored
Add GITLAB_SHELL_CUSTOM_HOOKS_DIR
1 parent 1a13c9f commit 5466c0d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

assets/runtime/functions

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,6 +1600,13 @@ configure_gitlab_shell() {
16001600
REDIS_HOST \
16011601
REDIS_PORT \
16021602
REDIS_DB_NUMBER
1603+
1604+
# update custom_hooks_dir if set $GITLAB_SHELL_CUSTOM_HOOKS_DIR
1605+
if [[ -n ${GITLAB_SHELL_CUSTOM_HOOKS_DIR} ]]; then
1606+
exec_as_git sed -i \
1607+
"s|custom_hooks_dir:.*|custom_hooks_dir: $GITLAB_SHELL_CUSTOM_HOOKS_DIR|g" \
1608+
${GITLAB_SHELL_CONFIG}
1609+
fi
16031610
}
16041611

16051612

0 commit comments

Comments
 (0)