summaryrefslogtreecommitdiff
path: root/entrypoint.sh
diff options
context:
space:
mode:
authorYour Name <you@example.com>2025-12-29 20:01:17 +0800
committerYour Name <you@example.com>2025-12-29 20:01:17 +0800
commit7bd52ea1ae10870cc2ff8aa5c237679c30ffda72 (patch)
treeaf72b9290a5e0cb7d2ae43752fb4ea3dba55bc1c /entrypoint.sh
parent745ca5a613d3dbac8143a62e4a90e9833422e023 (diff)
ssh keyfiles supportHEADmain
Diffstat (limited to 'entrypoint.sh')
-rw-r--r--entrypoint.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/entrypoint.sh b/entrypoint.sh
index bf3753f..3e2dcc0 100644
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -13,6 +13,14 @@ fi
13# Generate cgitrc from template 13# Generate cgitrc from template
14envsubst < /etc/cgitrc.template > /etc/cgitrc 14envsubst < /etc/cgitrc.template > /etc/cgitrc
15 15
16# Setup SSH
17ssh-keygen -A # Generate host keys if missing
18mkdir -p /git/.ssh
19touch /git/.ssh/authorized_keys
20chmod 700 /git/.ssh
21chmod 600 /git/.ssh/authorized_keys
22/usr/sbin/sshd
23
16spawn-fcgi -s ${FCGI_SOCK} /usr/bin/fcgiwrap 24spawn-fcgi -s ${FCGI_SOCK} /usr/bin/fcgiwrap
17chmod 666 ${FCGI_SOCK} 25chmod 666 ${FCGI_SOCK}
18 26