diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-06-01 00:37:30 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 02:54:06 +0200 |
commit | f1d44763617f2d3e8c60e6314831da886c97139d (patch) | |
tree | 8f0b02c2b638063a99b0880065e4dabca8ef337b /roles/git/tasks | |
parent | 6be6477f82cd469b688270e3e6ceff0bf347060c (diff) |
gitweb workaround encoding issues in FCGI mode.
Diffstat (limited to 'roles/git/tasks')
-rw-r--r-- | roles/git/tasks/gitweb.yml | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/roles/git/tasks/gitweb.yml b/roles/git/tasks/gitweb.yml index 81d8e3e..a72cc65 100644 --- a/roles/git/tasks/gitweb.yml +++ b/roles/git/tasks/gitweb.yml @@ -13,13 +13,6 @@ notify: - Restart gitweb -# See gitweb(1). To work in Fast CGI mode gitweb checks its filetype. -- name: Symlink 'gitweb.cgi' to 'gitweb.fcgi' - file: src=gitweb.cgi - dest=/usr/lib/cgi-bin/gitweb.fcgi - owner=root group=root - state=link force=no - - name: Create a user 'gitweb' user: name=gitweb system=yes home=/var/www @@ -35,6 +28,15 @@ # for pulls over HTTP/HTTPS - www-data +# XXX workaround encoding issues in FCGI mode +# http://git.661346.n2.nabble.com/Gitweb-running-as-FCGI-does-not-print-its-output-in-UTF-8-td7573415.html +# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=720308 +- name: Copy gitweb.cgi wrapper to fix encoding + copy: src=usr/lib/cgi-bin/gitweb-wrapper.fcgi + dest=/usr/lib/cgi-bin/gitweb-wrapper.fcgi + owner=root group=root + mode=0755 + - name: Copy gitweb.{service,socket} copy: src=lib/systemd/system/{{ item }} dest=/lib/systemd/system/{{ item }} |