Run rewrite-hooks after repos restore
This commit is contained in:
parent
d2c70b8920
commit
1d03fa2e7f
|
@ -68,6 +68,15 @@ module Backup
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
print 'Put GitLab hooks in repositories dirs'.yellow
|
||||
gitlab_shell_user_home = File.expand_path("~#{Gitlab.config.gitlab_shell.ssh_user}")
|
||||
if system("#{gitlab_shell_user_home}/gitlab-shell/support/rewrite-hooks.sh")
|
||||
puts " [DONE]".green
|
||||
else
|
||||
puts " [FAILED]".red
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
protected
|
||||
|
|
Loading…
Reference in New Issue