mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
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
This commit is contained in:
parent
e45d1fff33
commit
8f0bafcaff
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue