Commit e063c8f3 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'trigger_hooks_create_on_backup_restore' into 'master'

Trigger hooks create on backup restore

Number of users migrating from installation from source to omnibus get this issue. This can be fixed with a bash one liner but we already have a script that creates hooks in gitlab-shell. Added to gitlab:shell:install task call to `bin/create-hooks`. This script is idempotent which means it will only rewrite hooks if something changed.

Fixes https://dev.gitlab.org/gitlab/gitlabhq/issues/2208, https://github.com/gitlabhq/gitlabhq/issues/9101 and for the most part https://github.com/gitlabhq/gitlabhq/issues/8161

See merge request !762
parents 971e57cf 7af2fbba
...@@ -38,12 +38,13 @@ v 7.12.0 (unreleased) ...@@ -38,12 +38,13 @@ v 7.12.0 (unreleased)
- User should be able to leave group. If not - show him proper message - User should be able to leave group. If not - show him proper message
- User has ability to leave project - User has ability to leave project
- Add SAML support as an omniauth provider - Add SAML support as an omniauth provider
- Allow to configure a URL to show after sign out - Allow to configure a URL to show after sign out
- Add an option to automatically sign-in with an Omniauth provider - Add an option to automatically sign-in with an Omniauth provider
- Better performance for web editor (switched from satellites to rugged) - Better performance for web editor (switched from satellites to rugged)
- GitLab CI service sends .gitlab-ci.yaml in each push call - GitLab CI service sends .gitlab-ci.yaml in each push call
- When remove project - move repository and schedule it removal - When remove project - move repository and schedule it removal
- Improve group removing logic - Improve group removing logic
- Trigger create-hooks on backup restore task
v 7.11.4 v 7.11.4
- Fix missing bullets when creating lists - Fix missing bullets when creating lists
......
...@@ -59,6 +59,9 @@ namespace :gitlab do ...@@ -59,6 +59,9 @@ namespace :gitlab do
# Launch installation process # Launch installation process
system(*%W(bin/install)) system(*%W(bin/install))
# (Re)create hooks
system(*%W(bin/create-hooks))
end end
# Required for debian packaging with PKGR: Setup .ssh/environment with # Required for debian packaging with PKGR: Setup .ssh/environment with
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment