Fix engine substitution in phpBB3 importer template
authorGerhard Schlager <mail@gerhard-schlager.at>
Thu, 30 Jun 2016 20:24:49 +0000 (22:24 +0200)
committerGerhard Schlager <mail@gerhard-schlager.at>
Thu, 30 Jun 2016 20:24:49 +0000 (22:24 +0200)
templates/import/phpbb3.template.yml

index fafde3573aef9c95ca07afa5e2916c60cad20ea1..29b81bd4a80deb07ae7458df1927f3a9b93665cf 100644 (file)
@@ -33,6 +33,7 @@ hooks:
           default-storage-engine=MyISAM
           default-tmp-storage-engine=MyISAM
           innodb=OFF
+          sql_mode=NO_AUTO_CREATE_USER
 
           datadir=/shared/import/mysql/data
 
@@ -81,7 +82,7 @@ hooks:
               echo "Loading database dump into MySQL..."
               mysql -uroot -e "DROP DATABASE IF EXISTS phpbb"
               mysql -uroot -e "CREATE DATABASE phpbb"
-              mysql -uroot --default-character-set=utf8 --database=phpbb < /shared/import/data/phpbb_mysql.sql
+              mysql -uroot --default-character-set=utf8 --database=phpbb < /shared/import/data/phpbb_mysql.sql && \
               touch /shared/import/mysql/imported
             fi
           else