X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=upgrade%2F1.0.1%2Fupdate.sh;h=d19e994822b6da4a230ce17d2682809484d0f8ff;hb=843707811834ac764ceb05df10ddfde16e143912;hp=40f127848419f998c4074ca0372e2a39974b05d3;hpb=60db728a2709b1ee2d53fd3162644eb8dc184a7d;p=platal.git diff --git a/upgrade/1.0.1/update.sh b/upgrade/1.0.1/update.sh index 40f1278..d19e994 100755 --- a/upgrade/1.0.1/update.sh +++ b/upgrade/1.0.1/update.sh @@ -3,12 +3,11 @@ . ../inc/pervasive.sh ########################################################### -[ "$DATABASE" != "x5dat" ] || die "Cannot target x5dat" +[ "$DATABASE" != "x4dat" ] || die "Cannot target x4dat" copy_db echo "* switching engines to InnoDB" -(./innodb.sh | while read line; do mysql_exec "$line"; done) || die "ERROR" -echo "OK" +./innodb.sh | mysql_pipe confirm "* Running database upgrade scripts" mysql_run_directory .