git.iko.soy/typeable/nixpkgs
on master help sign in
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

commit8f0bafcaff7744d3d489a4eed563eda76fc604f8 authorTobias Happ <Gerschtli@users.noreply.github.com> dateFri 31 Aug 2018, 16:39 (8 years ago) parente45d1ff
1 file changed+1−1
nixos/modules/services/misc/gitea.nix+1−1
nixos/modules/services/misc/gitea.nix+1−1
@@ -283,7 +283,7 @@ in
283283
284284 mkdir -p ${cfg.repositoryRoot}
285285 # update all hooks' binary paths
286− HOOKS=$(find ${cfg.repositoryRoot} -mindepth 4 -maxdepth 5 -type f -wholename "*git/hooks/*")
286+ HOOKS=$(find ${cfg.repositoryRoot} -mindepth 4 -maxdepth 6 -type f -wholename "*git/hooks/*")
287287 if [ "$HOOKS" ]
288288 then
289289 sed -ri 's,/nix/store/[a-z0-9.-]+/bin/gitea,${gitea.bin}/bin/gitea,g' $HOOKS