···632 touch "${cfg.statePath}/db-seeded"
633 fi
63400000635 # Change permissions in the last step because some of the
636 # intermediary scripts like to create directories as root.
637 chown -R ${cfg.user}:${cfg.group} ${cfg.statePath}
···632 touch "${cfg.statePath}/db-seeded"
633 fi
634635+ # 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+640 # Change permissions in the last step because some of the
641 # intermediary scripts like to create directories as root.
642 chown -R ${cfg.user}:${cfg.group} ${cfg.statePath}