gitlab: stop regenerating the authorized_keys file

This commit is contained in:
Florian Klink
2018-11-28 23:09:23 +01:00
parent a3ec5dce2b
commit 3caeeabb14
2 changed files with 16 additions and 6 deletions
-4
View File
@@ -609,10 +609,6 @@ in {
touch "${cfg.statePath}/db-seeded"
fi
# The gitlab:shell:setup regenerates the authorized_keys file so that
# the store path to the gitlab-shell in it gets updated
${pkgs.sudo}/bin/sudo -u ${cfg.user} -H force=yes ${gitlab-rake}/bin/gitlab-rake gitlab:shell:setup
# The gitlab:shell:create_hooks task seems broken for fixing links
# so we instead delete all the hooks and create them anew
rm -f ${cfg.statePath}/repositories/**/*.git/hooks