mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2025-01-18 16:22:33 +01:00
fix restore.sh - mysql cmd
This commit is contained in:
parent
35ff2141ea
commit
2b43049ff9
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ fi
|
||||||
|
|
||||||
echo "=> Restore database $DB_NAME from $1"
|
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
|
then
|
||||||
echo "=> Restore succeeded"
|
echo "=> Restore succeeded"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue