Move the user used by the git-daemon service to be a variable
This commit is contained in:
parent
ac08e100fe
commit
bfd3eba918
5 changed files with 5 additions and 1 deletions
|
@ -23,6 +23,7 @@ git_port: 9418
|
||||||
git_server: /usr/libexec/git-core/git-daemon
|
git_server: /usr/libexec/git-core/git-daemon
|
||||||
git_server_args: --export-all --syslog --inetd --verbose
|
git_server_args: --export-all --syslog --inetd --verbose
|
||||||
git_basepath: /srv/git/repositories
|
git_basepath: /srv/git/repositories
|
||||||
|
git_daemon_user: git
|
||||||
|
|
||||||
# For the MOTD
|
# For the MOTD
|
||||||
csi_security_category: Low
|
csi_security_category: Low
|
||||||
|
|
|
@ -24,6 +24,7 @@ git_port: 9418
|
||||||
git_server: /usr/libexec/git-core/git-daemon
|
git_server: /usr/libexec/git-core/git-daemon
|
||||||
git_server_args: --export-all --syslog --inetd --verbose
|
git_server_args: --export-all --syslog --inetd --verbose
|
||||||
git_basepath: /srv/git/repositories
|
git_basepath: /srv/git/repositories
|
||||||
|
git_daemon_user: git
|
||||||
|
|
||||||
# For the MOTD
|
# For the MOTD
|
||||||
csi_security_category: Low
|
csi_security_category: Low
|
||||||
|
|
|
@ -19,6 +19,7 @@ git_port: 9418
|
||||||
git_server: /usr/libexec/git-core/git-daemon
|
git_server: /usr/libexec/git-core/git-daemon
|
||||||
git_server_args: --export-all --syslog --inetd --verbose
|
git_server_args: --export-all --syslog --inetd --verbose
|
||||||
git_basepath: /srv/git/rpms
|
git_basepath: /srv/git/rpms
|
||||||
|
git_daemon_user: nobody
|
||||||
|
|
||||||
clamscan_mailto: admin@fedoraproject.org
|
clamscan_mailto: admin@fedoraproject.org
|
||||||
clamscan_paths:
|
clamscan_paths:
|
||||||
|
|
|
@ -19,6 +19,7 @@ git_port: 9418
|
||||||
git_server: /usr/libexec/git-core/git-daemon
|
git_server: /usr/libexec/git-core/git-daemon
|
||||||
git_server_args: --export-all --syslog --inetd --verbose
|
git_server_args: --export-all --syslog --inetd --verbose
|
||||||
git_basepath: /srv/git/rpms
|
git_basepath: /srv/git/rpms
|
||||||
|
git_daemon_user: nodoby
|
||||||
|
|
||||||
clamscan_mailto: admin@fedoraproject.org
|
clamscan_mailto: admin@fedoraproject.org
|
||||||
clamscan_paths:
|
clamscan_paths:
|
||||||
|
|
|
@ -4,6 +4,6 @@ Documentation=man:git-daemon(1)
|
||||||
Wants=git.socket
|
Wants=git.socket
|
||||||
|
|
||||||
[Service]
|
[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
|
ExecStart=/usr/libexec/git-core/git-daemon --base-path={{ git_basepath }} --export-all --user-path=public_git --syslog --inetd --verbose
|
||||||
StandardInput=socket
|
StandardInput=socket
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue