Fixed problems in dispatcher, fixed testcase download error

This commit is contained in:
zema1
2018-08-21 15:21:31 +08:00
parent 69cb52b969
commit 8ee1b514e3
5 changed files with 19 additions and 25 deletions

View File

@@ -52,6 +52,7 @@ do
python manage.py migrate --no-input &&
python manage.py inituser --username=root --password=rootroot --action=create_super_admin &&
echo "from options.options import SysOptions; SysOptions.judge_server_token='$JUDGE_SERVER_TOKEN'" | python manage.py shell &&
echo "from conf.models import JudgeServer; JudgeServer.objects.update(task_number=0)" | python manage.py shell &&
break
n=$(($n+1))
echo "Failed to migrate, going to retry..."