mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00

Something in our signal handlers/code that touched signal handlers conflicted with clinic.js's signal handler code. With this commit, we don't touch signal handlers at all if DEBUG mode is enabled.
13 lines
382 B
Bash
13 lines
382 B
Bash
#!/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
|
|
|
|
cd /zeppelin/backend
|
|
if [ "$DEBUG" == "true" ]; then
|
|
echo "DEBUG MODE: Starting bot container without starting the bot"
|
|
exec tail -f /dev/null
|
|
else
|
|
echo "Starting bot"
|
|
exec npm run start-bot-prod
|
|
fi
|