nixos/gitlab: rebuild authorized_keys during preStart
This updates the path to the 'gitlab-shell' to the correct store path when gitlab is restarted.
This commit is contained in:
parent
dc915565ba
commit
78ad8d4a62
@ -630,6 +630,10 @@ in {
|
|||||||
touch "${cfg.statePath}/db-seeded"
|
touch "${cfg.statePath}/db-seeded"
|
||||||
fi
|
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} force=yes ${gitlab-rake}/bin/gitlab-rake gitlab:shell:setup RAILS_ENV=production
|
||||||
|
|
||||||
# The gitlab:shell:create_hooks task seems broken for fixing links
|
# The gitlab:shell:create_hooks task seems broken for fixing links
|
||||||
# so we instead delete all the hooks and create them anew
|
# so we instead delete all the hooks and create them anew
|
||||||
rm -f ${cfg.statePath}/repositories/**/*.git/hooks
|
rm -f ${cfg.statePath}/repositories/**/*.git/hooks
|
||||||
|
Loading…
x
Reference in New Issue
Block a user