From 45da2d7924e319eff955d108d80747f9d144f6ec Mon Sep 17 00:00:00 2001 From: TommyTran732 <57488583+tommytran732@users.noreply.github.com> Date: Thu, 2 Jan 2020 11:51:19 -0500 Subject: [PATCH] Create entrypoint.sh --- entrypoint.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 entrypoint.sh diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..7cea931 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,14 @@ + cd /home/container + +if [ "${GIT_CLONE}" == "true" ] || [ "${GIT_CLONE}" == "1" ]; then + if [ "$(ls -A /home/container)" ]; then + echo "Pulling Updates" + git pull + else + echo -e "/home/container is empty.\nCloning files into the directory." + git clone https://github.com/1tzemerald/SupportBot.git + fi +fi + +MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` +${MODIFIED_STARTUP}