SHA256
1
0
forked from pool/git

Accepting request 102275 from devel:tools:scm

- Added the ability to specify the user and group that git-daemon run
  as (bnc#742661).

OBS-URL: https://build.opensuse.org/request/show/102275
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/git?expand=0&rev=81
This commit is contained in:
Stephan Kulow
2012-02-01 08:57:38 +00:00
committed by Git OBS Bridge
parent 7962f00cec
commit 82f444b2a5
3 changed files with 93 additions and 3 deletions

View File

@@ -58,6 +58,9 @@ test -r $git_daemon_config || { echo "$git_daemon_config not existing";
: ${GIT_DAEMON_BASE_PATH:=/srv/git}
: ${GIT_DAEMON_USER:=git-daemon}
: ${GIT_DAEMON_GROUP:=nogroup}
. /etc/rc.status
# Reset status of this service
@@ -70,8 +73,8 @@ case "$1" in
--syslog \
--detach \
--reuseaddr \
--user=git-daemon \
--group=nogroup \
--user=${GIT_DAEMON_USER} \
--group=${GIT_DAEMON_GROUP} \
--pid-file=$pidfile \
--base-path="$GIT_DAEMON_BASE_PATH" \
$GIT_DAEMON_ARGS