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:
committed by
Git OBS Bridge
parent
7962f00cec
commit
82f444b2a5
@@ -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
|
||||
|
Reference in New Issue
Block a user