aboutsummaryrefslogtreecommitdiff
path: root/services/docker/git-server/app/lighttpd-wrapper.bash
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-03-07 19:15:31 +0800
committerYuqian Yang <crupest@crupest.life>2025-03-07 19:44:36 +0800
commit91690b59663b89bbc3d8c7febe2b046de1424672 (patch)
tree7dbd70ca6ede7f03925b371726246cfa327e1e71 /services/docker/git-server/app/lighttpd-wrapper.bash
parentcb6c8080bc6c6e262a73a8d1c0d21e12ebc3906a (diff)
downloadcrupest-91690b59663b89bbc3d8c7febe2b046de1424672.tar.gz
crupest-91690b59663b89bbc3d8c7febe2b046de1424672.tar.bz2
crupest-91690b59663b89bbc3d8c7febe2b046de1424672.zip
fix(git): public/private repo problem, enable cgit for private.
Diffstat (limited to 'services/docker/git-server/app/lighttpd-wrapper.bash')
-rwxr-xr-xservices/docker/git-server/app/lighttpd-wrapper.bash9
1 files changed, 9 insertions, 0 deletions
diff --git a/services/docker/git-server/app/lighttpd-wrapper.bash b/services/docker/git-server/app/lighttpd-wrapper.bash
new file mode 100755
index 0000000..54079ad
--- /dev/null
+++ b/services/docker/git-server/app/lighttpd-wrapper.bash
@@ -0,0 +1,9 @@
+#!/usr/bin/bash
+
+set -e
+
+[[ -f /git/user-info ]] || touch -a /git/user-info
+
+exec 3>&1
+exec 4>&1
+exec lighttpd -D -f /app/lighttpd/lighttpd.conf