All scripts on pkgs02 are now run as pagure
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
64bff7f658
commit
4a8fc6080e
4 changed files with 10 additions and 4 deletions
2
roles/distgit/files/suexec-upload.sh
Normal file
2
roles/distgit/files/suexec-upload.sh
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/bash
|
||||||
|
exec sudo -E -u apache /var/lib/dist-git/web/upload.cgi
|
|
@ -37,12 +37,16 @@
|
||||||
tags:
|
tags:
|
||||||
- distgit
|
- distgit
|
||||||
|
|
||||||
- name: Install suexec wrapper
|
- name: Install suexec wrappers
|
||||||
copy:
|
copy:
|
||||||
src=gitolite-suexec-wrapper.sh
|
src=suexec-{{item}}.sh
|
||||||
dest=/var/www/bin/gitolite-suexec-wrapper.sh
|
dest=/var/www/bin/suexec-{{item}}.sh
|
||||||
owner=pagure
|
owner=pagure
|
||||||
group=packager
|
group=packager
|
||||||
|
mode=0755
|
||||||
|
with_items:
|
||||||
|
- gitolite
|
||||||
|
- upload
|
||||||
tags:
|
tags:
|
||||||
- distgit
|
- distgit
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ Alias /robots.txt /var/www/robots-src.txt
|
||||||
|
|
||||||
<VirtualHost _default_:443>
|
<VirtualHost _default_:443>
|
||||||
# This alias must come before the /repo/ one to avoid being overridden.
|
# This alias must come before the /repo/ one to avoid being overridden.
|
||||||
ScriptAlias /repo/pkgs/upload.cgi /var/lib/dist-git/web/upload.cgi
|
ScriptAlias /repo/pkgs/upload.cgi /var/www/bin/suexec-upload.sh
|
||||||
|
|
||||||
Alias /repo/ /srv/cache/lookaside/
|
Alias /repo/ /srv/cache/lookaside/
|
||||||
ServerName pkgs{{ env_suffix }}.fedoraproject.org
|
ServerName pkgs{{ env_suffix }}.fedoraproject.org
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue