Create entrypoint.sh

This commit is contained in:
TommyTran732 authored and GitHub committed 2020-01-02 11:51:19 -05:00
1 parent af14a65ef5
commit 45da2d7924
1 file changed
+14
+14
View File
@@ -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}