diff --git a/sql/dj_setup_database.in b/sql/dj_setup_database.in index d6703d3760..96c4f24e8a 100755 --- a/sql/dj_setup_database.in +++ b/sql/dj_setup_database.in @@ -159,7 +159,7 @@ symfony_console() if [ -n "$DATABASE_URL" ]; then DATABASE_URL=$DATABASE_URL ${WEBAPPDIR}/bin/console -v $ARG "$@" else - ${WEBAPPDIR}/bin/console -v $ARG "$@" + DATABASE_URL="mysql://domjudge:simplepw@sqlserver:3306/domjudge?serverVersion=5.7.0" ${WEBAPPDIR}/bin/console -v $ARG "$@" fi # Make sure any generated cache data has the right permissions if we ran as root. @@ -368,7 +368,6 @@ bare-install|install) cat ~/.my.cnf echo "----- snap" symfony_console cache:clear - symfony_console domjudge:load-default-data DBUSER=$domjudge_DBUSER PASSWD=$domjudge_PASSWD symfony_console domjudge:load-default-data if [ "$1" = "install" ]; then install_examples