Skip to content

Commit

Permalink
Update action.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
TechiError authored Oct 28, 2022
1 parent 0b8852b commit 8fa3ac1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8fa3ac1

Please sign in to comment.