diff options
author | mh <mh@immerda.ch> | 2009-01-08 21:18:24 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2009-01-08 21:18:24 +0000 |
commit | b1a06a0b09d156b029327928d4c9a177e73c4714 (patch) | |
tree | da4032320dac245e7f69b277a7ed15e00f230c63 /files/init.d | |
parent | a28669485770e6bf62adba52793b6d193ea88b76 (diff) |
run git-daemon as a user
Diffstat (limited to 'files/init.d')
-rw-r--r-- | files/init.d/git-daemon | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/files/init.d/git-daemon b/files/init.d/git-daemon index f574480..aed2075 100644 --- a/files/init.d/git-daemon +++ b/files/init.d/git-daemon @@ -16,14 +16,16 @@ export PATH lockfile=${LOCKFILE-/var/lock/subsys/git-daemon} gitdir=${GITDIR-/srv/git} gitvhost=${GITVHOST-no} +user=${GITUSER-nobody} options=${OPTIONS-"--reuseaddr --verbose --detach"} gitdaemon=${GITDAEMON-/usr/bin/git-daemon} RETVAL=0 +gitoptions="--user=${user} ${options}" if [ $gitvhost = yes ]; then - gitoptions="${options} --interpolated-path=${gitdir}/%H/%D" + gitoptions="${gitoptions} --interpolated-path=${gitdir}/%H/%D" else - gitoptions="${options} --base-path=${gitdir}" + gitoptions="${gitoptions} --base-path=${gitdir}" fi # Source function library. |