nixos/gitlab: Delete stale hooks directories with -R

These can be directories.
This commit is contained in:
Ben Gamari 2019-07-30 18:32:42 -04:00 committed by Florian Klink
parent 48da993627
commit d7d873b8cb

View File

@ -659,7 +659,7 @@ in {
fi
# We remove potentially broken links to old gitlab-shell versions
rm -f ${cfg.statePath}/repositories/**/*.git/hooks
rm -Rf ${cfg.statePath}/repositories/**/*.git/hooks
${pkgs.sudo}/bin/sudo -u ${cfg.user} -H ${pkgs.git}/bin/git config --global core.autocrlf "input"
'';