All scripts on pkgs02 are now run as pagure

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2018-06-11 17:28:49 +02:00
parent 64bff7f658
commit 4a8fc6080e
4 changed files with 10 additions and 4 deletions

View file

@ -0,0 +1,2 @@
#!/bin/bash
exec sudo -E -u apache /var/lib/dist-git/web/upload.cgi

View file

@ -37,12 +37,16 @@
tags:
- distgit
- name: Install suexec wrapper
- name: Install suexec wrappers
copy:
src=gitolite-suexec-wrapper.sh
dest=/var/www/bin/gitolite-suexec-wrapper.sh
src=suexec-{{item}}.sh
dest=/var/www/bin/suexec-{{item}}.sh
owner=pagure
group=packager
mode=0755
with_items:
- gitolite
- upload
tags:
- distgit

View file

@ -45,7 +45,7 @@ Alias /robots.txt /var/www/robots-src.txt
<VirtualHost _default_:443>
# 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/
ServerName pkgs{{ env_suffix }}.fedoraproject.org