diff options
Diffstat (limited to 'entrypoint.sh')
| -rw-r--r-- | entrypoint.sh | 8 |
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 |
| 14 | envsubst < /etc/cgitrc.template > /etc/cgitrc | 14 | envsubst < /etc/cgitrc.template > /etc/cgitrc |
| 15 | 15 | ||
| 16 | # Setup SSH | ||
| 17 | ssh-keygen -A # Generate host keys if missing | ||
| 18 | mkdir -p /git/.ssh | ||
| 19 | touch /git/.ssh/authorized_keys | ||
| 20 | chmod 700 /git/.ssh | ||
| 21 | chmod 600 /git/.ssh/authorized_keys | ||
| 22 | /usr/sbin/sshd | ||
| 23 | |||
| 16 | spawn-fcgi -s ${FCGI_SOCK} /usr/bin/fcgiwrap | 24 | spawn-fcgi -s ${FCGI_SOCK} /usr/bin/fcgiwrap |
| 17 | chmod 666 ${FCGI_SOCK} | 25 | chmod 666 ${FCGI_SOCK} |
| 18 | 26 | ||
