File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ RUN mkdir keys && \
2525# More info: https://git-scm.com/docs/git-shell
2626COPY git-shell-commands /home/git/git-shell-commands
2727
28+ RUN echo '' > /etc/motd
29+
2830# sshd_config file is edited for enable access key and disable access password
2931COPY sshd_config /etc/ssh/sshd_config
3032
Original file line number Diff line number Diff line change 22printf ' %s\n' " Welcome to git-server-docker!"
33printf ' %s\n' " You've successfully authenticated, but I do not"
44printf ' %s\n' " provide interactive shell access."
5+
6+ printf ' \n'
7+ printf ' %s\n' " The following repositories are available:"
8+ for REPO in /git-server/repos/*
9+ do
10+ printf ' %s\n' " - $( basename ${REPO% .git} ) "
11+ done
12+
13+ printf ' \n'
14+ printf ' %s\n' " To clone, use the following URL:"
15+ printf ' %s\n' " ssh://git@<SERVER>:<PORT>/git-server/repos/<REPO_NAME>.git"
16+
517exit 128
You can’t perform that action at this time.
0 commit comments