summaryrefslogtreecommitdiff
path: root/web/entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'web/entrypoint.sh')
-rwxr-xr-xweb/entrypoint.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/web/entrypoint.sh b/web/entrypoint.sh
new file mode 100755
index 0000000..f92af30
--- /dev/null
+++ b/web/entrypoint.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+mkdir -p /repos
+# fcgiwrap на unix-сокете (его дёргает nginx для cgit.cgi и git-http-backend)
+rm -f /run/fcgiwrap.sock
+spawn-fcgi -s /run/fcgiwrap.sock -M 0666 -F 4 -- /usr/sbin/fcgiwrap
+exec nginx -g 'daemon off;'