Run rewrite-hooks after repos restore

This commit is contained in:
Dmitriy Zaporozhets 2013-04-10 15:11:45 +03:00
parent d2c70b8920
commit 1d03fa2e7f
1 changed files with 9 additions and 0 deletions

View File

@ -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