aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-04-27 00:16:11 -0400
committerbnewbold <bnewbold@robocracy.org>2016-04-27 00:16:11 -0400
commit72425649892a326ef24ebbd5c1fbaf6e3f4ac14a (patch)
treec7bebddd36940b2bbe06e6bd8c2552f8ad6bd937
parent2971b7249f364fbeae4e381ce85184564e087aa5 (diff)
downloadinfra-72425649892a326ef24ebbd5c1fbaf6e3f4ac14a.tar.gz
infra-72425649892a326ef24ebbd5c1fbaf6e3f4ac14a.zip
cgit: fix filter paths; force nginx reload
-rw-r--r--roles/git/tasks/cgit.yml1
-rw-r--r--roles/git/templates/etc_cgitrc.j24
2 files changed, 3 insertions, 2 deletions
diff --git a/roles/git/tasks/cgit.yml b/roles/git/tasks/cgit.yml
index 62b142e..9d3f2db 100644
--- a/roles/git/tasks/cgit.yml
+++ b/roles/git/tasks/cgit.yml
@@ -46,6 +46,7 @@
dest=/etc/nginx/sites-available/cgit
group=root
owner=root
+ notify: nginx reload
- name: Create symlink to enable cgit config
file: state=link
diff --git a/roles/git/templates/etc_cgitrc.j2 b/roles/git/templates/etc_cgitrc.j2
index 82af626..6d9a2b5 100644
--- a/roles/git/templates/etc_cgitrc.j2
+++ b/roles/git/templates/etc_cgitrc.j2
@@ -82,11 +82,11 @@ mimetype.svg=image/svg+xml
# Highlight source code with python pygments-based highlighter
-source-filter=/usr/local/lib/cgit/filters/syntax-highlighting.py
+source-filter=/usr/lib/cgit/filters/syntax-highlighting.py
# Format markdown, restructuredtext, manpages, text files, and html files
# through the right converters
-about-filter=/usr/local/lib/cgit/filters/about-formatting.sh
+about-filter=/usr/lib/cgit/filters/about-formatting.sh
##
## Search for these files in the root of the default branch of repositories