Prevent container shutdown forcing SQL import

This commit is contained in:
Joan Sanchez 2018-05-10 14:07:25 +02:00
parent 52b3567b47
commit b14154b4e2
1 changed files with 3 additions and 3 deletions

View File

@ -8,13 +8,13 @@ else
# Dump structure
for file in dump/*-*.sql; do
echo "Imported $file"
mysql -u root -proot < $file
mysql -u root -proot -f < $file
done
# Import changes
for file in changes/*/*.sql; do
echo "Imported $file"
mysql -u root -proot < $file
echo "Imported $file"
mysql -u root -proot -f < $file
done
# Import fixtures