summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorMárton Boros <martonboros@gmail.com>2017-10-23 23:48:26 +0200
committerRobin Gloster <mail@glob.in>2017-10-30 12:49:27 +0100
commit00c03e90038a4935da17fa0d5f5ca9d08fc19676 (patch)
treefa97f29dd148bb12653e3e9f703c159ac0ffbb49 /nixos/modules
parent29e80bde404b5ed126fdc2f32e794556506a9cc9 (diff)
downloadnixlib-00c03e90038a4935da17fa0d5f5ca9d08fc19676.tar
nixlib-00c03e90038a4935da17fa0d5f5ca9d08fc19676.tar.gz
nixlib-00c03e90038a4935da17fa0d5f5ca9d08fc19676.tar.bz2
nixlib-00c03e90038a4935da17fa0d5f5ca9d08fc19676.tar.lz
nixlib-00c03e90038a4935da17fa0d5f5ca9d08fc19676.tar.xz
nixlib-00c03e90038a4935da17fa0d5f5ca9d08fc19676.tar.zst
nixlib-00c03e90038a4935da17fa0d5f5ca9d08fc19676.zip
nixos/gitlab: fix preStart script
Diffstat (limited to 'nixos/modules')
-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 0dde9ff3c5a5..e0fae335d03b 100644
--- a/nixos/modules/services/misc/gitlab.nix
+++ b/nixos/modules/services/misc/gitlab.nix
@@ -634,7 +634,7 @@ in {
 
         # The gitlab:shell:create_hooks task seems broken for fixing links
         # so we instead delete all the hooks and create them anew
-        rm ${cfg.statePath}/repositories/**/*.git/hooks
+        rm -f ${cfg.statePath}/repositories/**/*.git/hooks
         ${gitlab-rake}/bin/gitlab-rake gitlab:shell:create_hooks RAILS_ENV=production
 
         # Change permissions in the last step because some of the