From 00f8fd8a71ad956dda0e90a42f947f1f805585dc Mon Sep 17 00:00:00 2001
From: Daniel Weipert <code@drogueronin.de>
Date: Sun, 17 Sep 2023 14:34:50 +0200
Subject: inital commit

---
 docker/cgit/docker-entrypoint.sh | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100755 docker/cgit/docker-entrypoint.sh

(limited to 'docker/cgit/docker-entrypoint.sh')

diff --git a/docker/cgit/docker-entrypoint.sh b/docker/cgit/docker-entrypoint.sh
new file mode 100755
index 0000000..102d46c
--- /dev/null
+++ b/docker/cgit/docker-entrypoint.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+
+if [ "${1}" = "init" ]; then
+  service apache2 start
+
+  /docker-init.py
+
+  # TODO: https://git-scm.com/docs/gitweb#_generating_projects_list_using_gitweb
+
+  tail -f /dev/null
+else
+  exec "$@"
+fi
-- 
cgit v1.2.3