3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00
zeppelin/docker/production/start-bot.sh

14 lines
382 B
Bash
Raw Permalink Normal View History

2022-08-06 22:18:21 +03:00
#!/bin/bash
# This wrapper script is used to run different things based on the DEBUG env variable
# Exec is used to forward signals: https://unix.stackexchange.com/a/196053
2022-08-06 22:18:21 +03:00
cd /zeppelin/backend
if [ "$DEBUG" == "true" ]; then
echo "DEBUG MODE: Starting bot container without starting the bot"
exec tail -f /dev/null
2023-04-04 20:44:13 +03:00
else
echo "Starting bot"
exec npm run start-bot-prod
fi