3 # THIS SCRIPT IS BEING RUN UNDER ROOT!!!
5 # [repo.or.cz] You will need to manually update this file if you modify
6 # it in the repository.
14 ## Girocco::Config::chroot
17 # disallow paths containing ../
20 echo "Invalid path" >&2
26 chmod ug
+rw
,o
+r .
-R 2>&1 |
(grep -v 'No such file or directory' || true
)
28 [ -e .nofetch
] ||
exit
30 xproj
="$(echo "$proj" | sed 's/[.\/]/\\&/g')"
31 gid
="$(sed -ne "/^
$xproj:/ { s
/^
[^
:]*:[^
:]*:\
([0-9]*\
):.
*/\
1/; p
}" "$groupfile")"
32 if [ -z "$gid" ]; then
33 echo "cannot resolve gid for $proj ($xproj)" >&2
37 chown
"$mirror_user".
"$gid" info refs packed-refs objects
-R 2>&1 |
(grep -v 'No such file or directory' || true
)