diff --git a/entrypoint.sh b/entrypoint.sh index 4376212..f68661c 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,5 @@ #!/usr/bin/dumb-init /bin/sh +source version.sh # Set up key file KEY_FILE=${SSH_KEY_FILE:=/id_rsa} diff --git a/version.sh b/version.sh new file mode 100644 index 0000000..318f8ea --- /dev/null +++ b/version.sh @@ -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