diff --git a/action.sh b/action.sh index 2e7a02a4a8a..6d6b9a867f0 100644 --- a/action.sh +++ b/action.sh @@ -5,4 +5,12 @@ if grep -q MONGO_URI /root/TeamUltroid/.env; then elif grep -q REDIS_URI /root/TeamUltroid/.env; then pip3 install redis hiredis fi -bash startup +trap 'exit()' +timeout --preserve-status 19500 bash startup & +pid=$! +wait $pid +if [ $? -eq 143 ]; then + exit 0 +else + exit 1 +fi