Move cgit to suexec'd as well
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
2e058aef94
commit
c4844d58ed
3 changed files with 4 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
#Redirect /cgit/rpms/ /rpms/
|
#Redirect /cgit/rpms/ /rpms/
|
||||||
#Redirect permanent /cgit/ /
|
#Redirect permanent /cgit/ /
|
||||||
Alias /cgit-data /usr/share/cgit
|
Alias /cgit-data /usr/share/cgit
|
||||||
ScriptAlias /cgit /var/www/cgi-bin/cgit
|
ScriptAlias /cgit /var/www/bin/suexec-cgit.conf
|
||||||
<Directory "/usr/share/cgit">
|
<Directory "/usr/share/cgit">
|
||||||
Require all granted
|
Require all granted
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
2
roles/distgit/files/suexec-cgit.sh
Normal file
2
roles/distgit/files/suexec-cgit.sh
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/bash
|
||||||
|
exec sudo -E -u apache /var/www/cgi-bin/cgit
|
|
@ -45,6 +45,7 @@
|
||||||
group=packager
|
group=packager
|
||||||
mode=0755
|
mode=0755
|
||||||
with_items:
|
with_items:
|
||||||
|
- cgit
|
||||||
- gitolite
|
- gitolite
|
||||||
- upload
|
- upload
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue