Skip to content

Commit

Permalink
add version.sh to ease transition to v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jnovack committed Aug 20, 2020
1 parent 00be220 commit ecef8b0
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/dumb-init /bin/sh
source version.sh

This comment has been minimized.

Copy link
@mrsemmix

mrsemmix Aug 23, 2020

Contributor

/version.sh ?


# Set up key file
KEY_FILE=${SSH_KEY_FILE:=/id_rsa}
Expand Down
33 changes: 33 additions & 0 deletions version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/sh

# A "common-courtesy" file inspired by @gurneyalex
# - Information on current version.
# - Deprecation warnings for future versions.

if [ ! -z $SSH_TUNNEL_HOST ]; then
echo "[WARN ] SSH_TUNNEL_HOST will be deprecated in v2.0"
fi

if [ ! -z $SSH_TUNNEL_LOCAL ]; then
echo "[WARN ] SSH_TUNNEL_LOCAL will be deprecated in v2.0"
fi

if [ ! -z $SSH_TUNNEL_REMOTE ]; then
echo "[WARN ] SSH_TUNNEL_REMOTE will be deprecated in v2.0"
fi

if [ ! -z $SSH_HOSTUSER ]; then
echo "[WARN ] SSH_HOSTUSER will be deprecated in v2.0"
fi

if [ ! -z $SSH_HOSTNAME ]; then
echo "[WARN ] SSH_HOSTNAME will be deprecated in v2.0"
fi

if [ ! -z $SSH_HOSTPORT ]; then
echo "[WARN ] SSH_HOSTPORT will be deprecated in v2.0"
fi

if [ ! -z $SSH_KNOWN_HOSTS ]; then
echo "[WARN ] SSH_KNOWN_HOSTS will be deprecated in v2.0"
fi

0 comments on commit ecef8b0

Please sign in to comment.