about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-07-30 18:32:42 -0400
committerFlorian Klink <flokli@flokli.de>2019-08-14 15:29:50 +0200
commitd7d873b8cb2e7c39234e9b214813d58f29cc4950 (patch)
tree6d56037313ffd0a30135c5a6d3d8b7212c7313a4 /nixos
parent48da993627b9cfe4586a8781d0fdc0082dd1cb33 (diff)
downloadnixlib-d7d873b8cb2e7c39234e9b214813d58f29cc4950.tar
nixlib-d7d873b8cb2e7c39234e9b214813d58f29cc4950.tar.gz
nixlib-d7d873b8cb2e7c39234e9b214813d58f29cc4950.tar.bz2
nixlib-d7d873b8cb2e7c39234e9b214813d58f29cc4950.tar.lz
nixlib-d7d873b8cb2e7c39234e9b214813d58f29cc4950.tar.xz
nixlib-d7d873b8cb2e7c39234e9b214813d58f29cc4950.tar.zst
nixlib-d7d873b8cb2e7c39234e9b214813d58f29cc4950.zip
nixos/gitlab: Delete stale hooks directories with -R
These can be directories.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/misc/gitlab.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/gitlab.nix b/nixos/modules/services/misc/gitlab.nix
index 087630f21776..09c3a89d6a68 100644
--- a/nixos/modules/services/misc/gitlab.nix
+++ b/nixos/modules/services/misc/gitlab.nix
@@ -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"
       '';