Skip to content

Commit d863b61

Browse files
committed
Updated motd
1 parent a9154be commit d863b61

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ RUN mkdir keys && \
2525
# More info: https://git-scm.com/docs/git-shell
2626
COPY 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
2931
COPY sshd_config /etc/ssh/sshd_config
3032

git-shell-commands/no-interactive-login

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,16 @@
22
printf '%s\n' "Welcome to git-server-docker!"
33
printf '%s\n' "You've successfully authenticated, but I do not"
44
printf '%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+
517
exit 128

0 commit comments

Comments
 (0)