Skip to content

Commit

Permalink
Fix startup script
Browse files Browse the repository at this point in the history
  • Loading branch information
MiiRaGe committed Jun 4, 2023
1 parent 113e162 commit ebdae42
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion start_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ fi
echo "Making sure the user and config is correct for mysqld"
chown -R mysql:mysql /data/mysql
echo "Starting Mysql"
MYSQL=`which mysql`
/usr/bin/mysqld_safe&

echo "Give time for mysql to start"
sleep 10

MYSQL=`which mysql`
OUTPUT="Can't connect"
while [[ $OUTPUT == *"Can't connect"* ]]
do
Expand Down

0 comments on commit ebdae42

Please sign in to comment.