diff options
author | Simon Lackerbauer <simon@lackerbauer.com> | 2017-10-21 11:15:25 +0200 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2017-10-22 14:28:56 +0200 |
commit | 414720709bd11d6919007fdb99e3036645f7eff2 (patch) | |
tree | 523870a7b5b6e20174d5b5a1437f86353f679bf8 /nixos | |
parent | d1c8c04ea6b2f09b3062301d1a91f6e5d9af7fb6 (diff) |
gitlab-module: fix hooks links for older repositories
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/misc/gitlab.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/gitlab.nix b/nixos/modules/services/misc/gitlab.nix index 14c184c3d685c..1399a36ffeedb 100644 --- a/nixos/modules/services/misc/gitlab.nix +++ b/nixos/modules/services/misc/gitlab.nix @@ -632,6 +632,11 @@ in { touch "${cfg.statePath}/db-seeded" fi + # The gitlab:shell:create_hooks task seems broken for fixing links + # so we instead delete all the hooks and create them anew + rm ${cfg.statePath}/repositories/**/*.git/hooks + ${gitlab-rake}/bin/gitlab-rake gitlab:shell:create_hooks RAILS_ENV=production + # Change permissions in the last step because some of the # intermediary scripts like to create directories as root. chown -R ${cfg.user}:${cfg.group} ${cfg.statePath} |