dépôts
/
lhc
/
ateliers.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correction : vm_hosted : gitweb.
[lhc/ateliers.git]
/
etc
/
sv
/
git-daemon
/
run
diff --git
a/etc/sv/git-daemon/run
b/etc/sv/git-daemon/run
index
05140d7
..
d0086a2
100755
(executable)
--- a/
etc/sv/git-daemon/run
+++ b/
etc/sv/git-daemon/run
@@
-1,12
+1,11
@@
-#!/bin/sh -e
f
ux
+#!/bin/sh -eux
exec 2>&1
exec 2>&1
+sv=${PWD#/etc/sv/}
+eval "home=~$sv"
exec /usr/bin/chpst \
exec /usr/bin/chpst \
- -u git-daemon:git-daemon \
- /usr/bin/git daemon \
- --base-path=/home/git/pub \
- --interpolated-path=/home/git/srv/%H%D \
+ -u "$sv":"$sv":git-data \
+ /usr/lib/git-core/git-daemon \
+ --interpolated-path="$home"/%H%D \
--reuseaddr \
--user-path=pub/git \
--reuseaddr \
--user-path=pub/git \
- --verbose \
- -- \
- /home/git/pub/git
+ --verbose