Skip to content

Commit

Permalink
Fixed container exit immediately after restart.
Browse files Browse the repository at this point in the history
  • Loading branch information
ip2location committed Aug 5, 2021
1 parent 16695b8 commit 3791699
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
error() { echo -e "\e[91m$1\e[m"; exit 0; }
success() { echo -e "\e[92m$1\e[m"; }

if [ -f /config ]; then
exit 0
if [ ! -f /config ]; then
/etc/init.d/mysql restart >/dev/null 2>&1
tail -f /dev/null
fi

if [ "$TOKEN" == "FALSE" ]; then
Expand Down

0 comments on commit 3791699

Please sign in to comment.