X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fsv%2Fgit-daemon%2Frun;h=07ff0a30f1da6d7b37c133df1e51920151ac5fb3;hb=7162111397558c874a76b510aa16954dfc566a37;hp=05140d7b256df6e3b068d5bf0ee4074fa8d0d50d;hpb=2d48a198262604098443c6a90e58b0084600a4d7;p=lhc%2Fateliers.git diff --git a/etc/sv/git-daemon/run b/etc/sv/git-daemon/run index 05140d7..07ff0a3 100755 --- a/etc/sv/git-daemon/run +++ b/etc/sv/git-daemon/run @@ -1,12 +1,12 @@ -#!/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 \ - --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 \ - --verbose \ - -- \ - /home/git/pub/git + --verbose