Skip to content

Commit 3682aaf

Browse files
committed
add version info to motd
1 parent 519e7c6 commit 3682aaf

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

image/entrypoint

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ set -e
33

44
echo ">>> FarSSH container image $FARSSH_VERSION ($FARSSH_DATE)"
55

6+
# Generate motd with version and date
7+
sed -i "s/__FARSSH_VERSION__/$FARSSH_VERSION/g" /etc/motd
8+
sed -i "s/__FARSSH_DATE__/$FARSSH_DATE/g" /etc/motd
9+
610
host_algos=$(env | sed -n 's/FARSSH_SSH_HOST_\([A-Z0-9]*\)_KEY_BASE64=.*/\1/p')
711

812
echo ">>> FarSSH host keys:"

image/motd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
Welcome to some FarSSH relay.
22

3+
Version: __FARSSH_VERSION__ (built: __FARSSH_DATE__)
4+
35
See https://github.com/apparentorder/farssh for further information.
46

0 commit comments

Comments
 (0)