gitlab-module: fix hooks links for older repositories

authored by Simon Lackerbauer and committed by Robin Gloster 41472070 d1c8c04e

+5
+5
nixos/modules/services/misc/gitlab.nix
··· 632 632 touch "${cfg.statePath}/db-seeded" 633 633 fi 634 634 635 + # The gitlab:shell:create_hooks task seems broken for fixing links 636 + # so we instead delete all the hooks and create them anew 637 + rm ${cfg.statePath}/repositories/**/*.git/hooks 638 + ${gitlab-rake}/bin/gitlab-rake gitlab:shell:create_hooks RAILS_ENV=production 639 + 635 640 # Change permissions in the last step because some of the 636 641 # intermediary scripts like to create directories as root. 637 642 chown -R ${cfg.user}:${cfg.group} ${cfg.statePath}