fix restore.sh - mysql cmd

This commit is contained in:
Alexey Kovtunovich 2022-06-18 12:25:46 +03:00
parent 35ff2141ea
commit 2b43049ff9

View file

@ -30,7 +30,7 @@ fi
echo "=> Restore database $DB_NAME from $1"
if echo "$SQL" | mysql -h "$MYSQL_HOST" -P "$MYSQL_PORT" -u "$MYSQL_USER" -p"$MYSQL_PASS" "$DB_NAME" $MYSQL_SSL_OPTS
if echo "$SQL" | mysql -h "$MYSQL_HOST" -P "$MYSQL_PORT" -u "$MYSQL_USER" -p"$MYSQL_PASS" $MYSQL_SSL_OPTS "$DB_NAME"
then
echo "=> Restore succeeded"
else