summaryrefslogtreecommitdiff
path: root/images/git/service
diff options
context:
space:
mode:
authorSystem administrator2017-05-29 13:26:10 +0200
committerSystem administrator2017-05-29 13:26:10 +0200
commitbc5c44dd049bad3b007be48b3f8d90886d63c105 (patch)
treea381d989db2295f228f9bc95a774f0cc9aef4c40 /images/git/service
downloadserver-bc5c44dd049bad3b007be48b3f8d90886d63c105.tar.gz
server-bc5c44dd049bad3b007be48b3f8d90886d63c105.tar.xz
server-bc5c44dd049bad3b007be48b3f8d90886d63c105.zip
Initial commit
Diffstat (limited to 'images/git/service')
-rw-r--r--images/git/service/daemon/run2
-rw-r--r--images/git/service/fcgiwrap/run2
-rw-r--r--images/git/service/nginx/run2
-rw-r--r--images/git/service/sshd/run4
4 files changed, 10 insertions, 0 deletions
diff --git a/images/git/service/daemon/run b/images/git/service/daemon/run
new file mode 100644
index 0000000..485e706
--- /dev/null
+++ b/images/git/service/daemon/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec chpst -ugit git daemon --base-path=/data/git/repositories
diff --git a/images/git/service/fcgiwrap/run b/images/git/service/fcgiwrap/run
new file mode 100644
index 0000000..4c7efcb
--- /dev/null
+++ b/images/git/service/fcgiwrap/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec spawn-fcgi -n -s /run/fcgiwrap.sock /usr/bin/fcgiwrap 2>&1
diff --git a/images/git/service/nginx/run b/images/git/service/nginx/run
new file mode 100644
index 0000000..ef7f976
--- /dev/null
+++ b/images/git/service/nginx/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec nginx -g 'daemon off;' 2>&1
diff --git a/images/git/service/sshd/run b/images/git/service/sshd/run
new file mode 100644
index 0000000..91abb22
--- /dev/null
+++ b/images/git/service/sshd/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+mkdir -p /data/ssh
+chmod +x /app/generate_certs.sh
+/app/generate_certs.sh && exec /usr/sbin/sshd -D 2>&1