summaryrefslogtreecommitdiff
path: root/files/init.d/git-daemon
diff options
context:
space:
mode:
Diffstat (limited to 'files/init.d/git-daemon')
-rw-r--r--files/init.d/git-daemon6
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.