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

authored by Tobias Happ and committed by xeji 8f0bafca e45d1fff

+1 -1
+1 -1
nixos/modules/services/misc/gitea.nix
··· 283 284 mkdir -p ${cfg.repositoryRoot} 285 # update all hooks' binary paths 286 - HOOKS=$(find ${cfg.repositoryRoot} -mindepth 4 -maxdepth 5 -type f -wholename "*git/hooks/*") 287 if [ "$HOOKS" ] 288 then 289 sed -ri 's,/nix/store/[a-z0-9.-]+/bin/gitea,${gitea.bin}/bin/gitea,g' $HOOKS
··· 283 284 mkdir -p ${cfg.repositoryRoot} 285 # update all hooks' binary paths 286 + HOOKS=$(find ${cfg.repositoryRoot} -mindepth 4 -maxdepth 6 -type f -wholename "*git/hooks/*") 287 if [ "$HOOKS" ] 288 then 289 sed -ri 's,/nix/store/[a-z0-9.-]+/bin/gitea,${gitea.bin}/bin/gitea,g' $HOOKS