X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;ds=sidebyside;f=etc%2Fsv%2Fgit-daemon%2Frun;h=d0086a25d8077a9e98e5f24da06a9017e1be409e;hb=bac5cba029aebec55df758a3c18e8edcf684af1f;hp=c994c65b9fa9923bc4340bfab86fab224b73eabb;hpb=c66bfacc6bac1bcb030675983107e4b90b08029b;p=lhc%2Fateliers.git diff --git a/etc/sv/git-daemon/run b/etc/sv/git-daemon/run index c994c65..d0086a2 100755 --- a/etc/sv/git-daemon/run +++ b/etc/sv/git-daemon/run @@ -1,13 +1,11 @@ -#!/bin/sh -efux +#!/bin/sh -eux exec 2>&1 +sv=${PWD#/etc/sv/} +eval "home=~$sv" exec /usr/bin/chpst \ - -u git-daemon:git-daemon \ - /usr/bin/git daemon \ - --base-path=/home/git/pub/git \ - --interpolated-path=/home/git/srv/git/%H%D \ + -u "$sv":"$sv":git-data \ + /usr/lib/git-core/git-daemon \ + --interpolated-path="$home"/%H%D \ --reuseaddr \ - --syslog \ --user-path=pub/git \ - --verbose \ - -- \ - /home/git/pub/git + --verbose