summaryrefslogtreecommitdiff
path: root/docker/cgit/docker-entrypoint.sh
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-09-17 14:34:50 +0200
committerDaniel Weipert <code@drogueronin.de>2023-09-17 14:34:50 +0200
commit00f8fd8a71ad956dda0e90a42f947f1f805585dc (patch)
treec49d959f60cc4a57c34d62c2cab3cfde6046f82e /docker/cgit/docker-entrypoint.sh
inital commit
Diffstat (limited to 'docker/cgit/docker-entrypoint.sh')
-rwxr-xr-xdocker/cgit/docker-entrypoint.sh14
1 files changed, 14 insertions, 0 deletions
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