Skip to content

Commit

Permalink
Updated scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
MiiRaGe committed Jun 4, 2023
1 parent 0440448 commit 831749b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions start_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ echo "Starting Mysql"
/usr/bin/mysqld_safe&

echo "Give time for mysql to start"
sleep 10
sleep 30

MYSQL=`which mysql`
echo Trying to run: $MYSQL
MYSQL_BIN=`which mysql`
echo Trying to run: $MYSQL_BIN

OUTPUT="Can't connect"
while [[ $OUTPUT == *"Can't connect"* ]]
do
OUTPUT=$($MYSQL -uroot -proot -e "FLUSH PRIVILEGES;" 2>&1)
OUTPUT=$($MYSQL_BIN -uroot -proot -e "FLUSH PRIVILEGES;" 2>&1)
echo "Trying to connect to mysql..."
sleep 1
done
Expand Down

0 comments on commit 831749b

Please sign in to comment.