Commit 1d03fa2e7f4d341f17d7ad5dcad4b1f8eda14a60
1 parent
d2c70b89
Exists in
master
and in
4 other branches
Run rewrite-hooks after repos restore
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
lib/backup/repository.rb
| ... | ... | @@ -68,6 +68,15 @@ module Backup |
| 68 | 68 | end |
| 69 | 69 | end |
| 70 | 70 | end |
| 71 | + | |
| 72 | + print 'Put GitLab hooks in repositories dirs'.yellow | |
| 73 | + gitlab_shell_user_home = File.expand_path("~#{Gitlab.config.gitlab_shell.ssh_user}") | |
| 74 | + if system("#{gitlab_shell_user_home}/gitlab-shell/support/rewrite-hooks.sh") | |
| 75 | + puts " [DONE]".green | |
| 76 | + else | |
| 77 | + puts " [FAILED]".red | |
| 78 | + end | |
| 79 | + | |
| 71 | 80 | end |
| 72 | 81 | |
| 73 | 82 | protected | ... | ... |