Ensure that the tunnel IP is actually printed

This commit is contained in:
R Tyler Croy 2019-03-25 19:53:40 -07:00
parent 073c68bea6
commit 2681d22fd0
No known key found for this signature in database
GPG Key ID: E5C92681BEF6CEA2
3 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ EXPOSE 22
RUN apk add -U -u openssh-server libcurl curl bash ncurses
COPY sshd_config /etc/ssh/
COPY run-sshd /usr/sbin/
COPY bin/run-sshd /usr/sbin/
COPY bin/nyan /usr/bin/
RUN adduser -h /home/aci -D aci && passwd -u aci

View File

@ -88,6 +88,6 @@ ssh -t ${forwards[@]} \
-o StrictHostKeyChecking=no \
-o UserKnownHostsFile=/dev/null \
-l ${TUNNEL_USER} \
$TUNNEL_IP "clear;echo 'Tunnel is active! YAY' && nyan"
$TUNNEL_IP "clear;echo 'Tunnel is active at ${TUNNEL_IP}! YAY' && nyan"
shutdown