2022-08-06 22:18:21 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-06-26 19:35:19 +00:00
|
|
|
# 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
|
2023-06-26 19:55:16 +00:00
|
|
|
if [ "$DEBUG" == "true" ]; then
|
2023-06-26 19:35:19 +00:00
|
|
|
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
|