Move the user used by the git-daemon service to be a variable

This commit is contained in:
Pierre-Yves Chibon 2015-05-13 16:05:06 +02:00
parent ac08e100fe
commit bfd3eba918
5 changed files with 5 additions and 1 deletions

View file

@ -23,6 +23,7 @@ git_port: 9418
git_server: /usr/libexec/git-core/git-daemon
git_server_args: --export-all --syslog --inetd --verbose
git_basepath: /srv/git/repositories
git_daemon_user: git
# For the MOTD
csi_security_category: Low

View file

@ -24,6 +24,7 @@ git_port: 9418
git_server: /usr/libexec/git-core/git-daemon
git_server_args: --export-all --syslog --inetd --verbose
git_basepath: /srv/git/repositories
git_daemon_user: git
# For the MOTD
csi_security_category: Low

View file

@ -19,6 +19,7 @@ git_port: 9418
git_server: /usr/libexec/git-core/git-daemon
git_server_args: --export-all --syslog --inetd --verbose
git_basepath: /srv/git/rpms
git_daemon_user: nobody
clamscan_mailto: admin@fedoraproject.org
clamscan_paths:

View file

@ -19,6 +19,7 @@ git_port: 9418
git_server: /usr/libexec/git-core/git-daemon
git_server_args: --export-all --syslog --inetd --verbose
git_basepath: /srv/git/rpms
git_daemon_user: nodoby
clamscan_mailto: admin@fedoraproject.org
clamscan_paths:

View file

@ -4,6 +4,6 @@ Documentation=man:git-daemon(1)
Wants=git.socket
[Service]
User=nobody
User={{ git_daemon_user }}
ExecStart=/usr/libexec/git-core/git-daemon --base-path={{ git_basepath }} --export-all --user-path=public_git --syslog --inetd --verbose
StandardInput=socket