From 9ab7f8a81f61af1bb93ce529e7ee7233c6e50e9e Mon Sep 17 00:00:00 2001 From: Leopere Date: Tue, 2 Oct 2018 16:36:26 -0400 Subject: [PATCH] This is just a placeholder mostly for future work --- lbrycrd/docker-entrypoint.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lbrycrd/docker-entrypoint.sh diff --git a/lbrycrd/docker-entrypoint.sh b/lbrycrd/docker-entrypoint.sh new file mode 100644 index 0000000..97933bf --- /dev/null +++ b/lbrycrd/docker-entrypoint.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# default to run whatever the user wanted like "/bin/bash" +## If user runs no need to run any more of the entrypoint script. +if [[ -z "$@" ]]; then + echo "User did not attempt input. Now executing docker-entrypoint." +else + echo "Running $@." + exec "$@" + exit 1 +fi + +/bin/bash