Commit 37f9f52a authored by Antoine Catton's avatar Antoine Catton

Fix: mariadb would recover again next restart

This is a working version of 41f95a7407a2767cc141726b76904d1b679f468f
parent 24bb617b
......@@ -34,4 +34,9 @@ def import_remote_dump(kwargs):
stdin=zcat.stdout)
zcat.stdout.close()
sys.exit(mysql.poll())
returncode = mysql.poll()
if returncode == 0:
open(lock_file, 'w').close() # Just a touch
sys.exit(returncode)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment