summary refs log tree commit diff
path: root/nixos/modules/services/misc/gitea.nix
diff options
context:
space:
mode:
authorTobias Happ <Gerschtli@users.noreply.github.com>2018-08-31 16:39:58 +0200
committerxeji <36407913+xeji@users.noreply.github.com>2018-08-31 16:39:58 +0200
commit8f0bafcaff7744d3d489a4eed563eda76fc604f8 (patch)
treea5f6da33c7d730abfb6018f8f4d4ba80d8873f78 /nixos/modules/services/misc/gitea.nix
parente45d1fff33aa8ad3584fd4bbe54ea7c679153d71 (diff)
downloadnixpkgs-8f0bafcaff7744d3d489a4eed563eda76fc604f8.tar
nixpkgs-8f0bafcaff7744d3d489a4eed563eda76fc604f8.tar.gz
nixpkgs-8f0bafcaff7744d3d489a4eed563eda76fc604f8.tar.bz2
nixpkgs-8f0bafcaff7744d3d489a4eed563eda76fc604f8.tar.lz
nixpkgs-8f0bafcaff7744d3d489a4eed563eda76fc604f8.tar.xz
nixpkgs-8f0bafcaff7744d3d489a4eed563eda76fc604f8.tar.zst
nixpkgs-8f0bafcaff7744d3d489a4eed563eda76fc604f8.zip
nixos/gitea: fix pre start script (#44979)
The gitea path is hardcoded in hooks directory in files of paths like:
    repositories/<user>/<repo>.git/hooks/update.d/gitea
Diffstat (limited to 'nixos/modules/services/misc/gitea.nix')
-rw-r--r--nixos/modules/services/misc/gitea.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/gitea.nix b/nixos/modules/services/misc/gitea.nix
index dc63f1a6c05..a222325579f 100644
--- a/nixos/modules/services/misc/gitea.nix
+++ b/nixos/modules/services/misc/gitea.nix
@@ -283,7 +283,7 @@ in
 
         mkdir -p ${cfg.repositoryRoot}
         # update all hooks' binary paths
-        HOOKS=$(find ${cfg.repositoryRoot} -mindepth 4 -maxdepth 5 -type f -wholename "*git/hooks/*")
+        HOOKS=$(find ${cfg.repositoryRoot} -mindepth 4 -maxdepth 6 -type f -wholename "*git/hooks/*")
         if [ "$HOOKS" ]
         then
           sed -ri 's,/nix/store/[a-z0-9.-]+/bin/gitea,${gitea.bin}/bin/gitea,g' $HOOKS