Files
SupportBot/entrypoint.sh
T

15 lines
470 B
Bash
Raw Permalink Normal View History

2020-01-02 11:51:19 -05:00
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
2020-01-03 04:40:13 -05:00
sed -i '/s/BOT_TOKEN_HERE/${BOT_TOKEN}/g' settings.json
2020-01-02 11:51:19 -05:00
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
${MODIFIED_STARTUP}