Update run.sh

Initial connection can't be to specific database, since that doesn't exist yet
stevengoossensB 2020-02-06 12:49:50 +01:00 committed by GitHub
parent 431ef652b7
commit 94c43c62b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ if [ -r /.firstboot.tmp ]; then
echo "MYSQL_PASSWORD is set to '$MYSQL_PASSWORD'"
fi
ret=`echo 'SHOW TABLES;' | mysql -u $MYSQL_USER --password="$MYSQL_PASSWORD" -h $MYSQL_HOST -P 3306 $MYSQL_DATABASE # 2>&1`
ret=`echo 'SHOW TABLES;' | mysql -u $MYSQL_USER --password="$MYSQL_PASSWORD" -h $MYSQL_HOST -P 3306 # 2>&1`
if [ $? -eq 0 ]; then
echo "Connected to database successfully!"
found=0