summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile5
-rw-r--r--cgitrc3
2 files changed, 7 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 6a79434..3b86162 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -49,6 +49,11 @@ RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
COPY --from=build_stage /var/www/html/cgit /var/www/html/cgit
+# Ensure filters are executable and use correct Python interpreter
+RUN chmod +x /var/www/html/cgit/filters/*.py 2>/dev/null || true && \
+ sed -i 's|#!/usr/bin/env python$|#!/usr/bin/env python3|g' /var/www/html/cgit/filters/*.py 2>/dev/null || true && \
+ sed -i 's|#!/usr/bin/python$|#!/usr/bin/python3|g' /var/www/html/cgit/filters/*.py 2>/dev/null || true
+
RUN mkdir -p /var/lib/git/repositories
RUN useradd -m -d /var/lib/git/repositories -s /usr/bin/git-shell code
diff --git a/cgitrc b/cgitrc
index 0ffd3a6..7c11ae5 100644
--- a/cgitrc
+++ b/cgitrc
@@ -15,6 +15,7 @@ enable-index-owner=0
scan-path=/var/lib/git/repositories
-source-filter=/var/www/html/cgit/filters/cgit-pygments-filter.py
+source-filter=/var/www/html/cgit/filters/syntax-highlighting.py
+about-filter=/var/www/html/cgit/filters/about-formatting.sh
virtual-root=/