Skip to content

Commit 0926461

Browse files
committed
Add flush privileges for mysql on restore
Fixed #10
1 parent a50ee19 commit 0926461

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/restore.sh

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ case "$1" in
2323
if [ -f "${BACKUP_DIR}/${BACKUP_MYSQL_FILE}" ]; then
2424
logMsg "Starting MySQL restore..."
2525
bzcat "${BACKUP_DIR}/${BACKUP_MYSQL_FILE}" | dockerExec mysql
26+
echo "FLUSH PRIVILEGES;" | dockerExec mysql
2627
logMsg "Finished"
2728
else
2829
errorMsg "MySQL backup file not found"

0 commit comments

Comments
 (0)