From dbdd61d18889880e4cc868e11e84c76a13e9eeab Mon Sep 17 00:00:00 2001 From: Leopere Date: Tue, 16 Oct 2018 20:50:01 -0400 Subject: [PATCH] docker-entrypoint.sh boilerplate --- lbrycrd/compile/docker-entrypoint.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lbrycrd/compile/docker-entrypoint.sh diff --git a/lbrycrd/compile/docker-entrypoint.sh b/lbrycrd/compile/docker-entrypoint.sh new file mode 100644 index 0000000..77e798a --- /dev/null +++ b/lbrycrd/compile/docker-entrypoint.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env 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