···632632 touch "${cfg.statePath}/db-seeded"
633633 fi
634634635635+ # The gitlab:shell:create_hooks task seems broken for fixing links
636636+ # so we instead delete all the hooks and create them anew
637637+ rm ${cfg.statePath}/repositories/**/*.git/hooks
638638+ ${gitlab-rake}/bin/gitlab-rake gitlab:shell:create_hooks RAILS_ENV=production
639639+635640 # Change permissions in the last step because some of the
636641 # intermediary scripts like to create directories as root.
637642 chown -R ${cfg.user}:${cfg.group} ${cfg.statePath}