Add a way to stop submission check, in case of huge bruteforce attack

This commit is contained in:
Némunaire 2015-01-18 07:04:25 +01:00 committed by Nemunaire
parent 5f271ed858
commit 13b1ac66fc
2 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,7 @@ do
./synchro.sh delete >> ./logs/synchro.log 2>&1
fi
if [ `ls submission | wc -l` -gt 1 ]
if [ `ls submission | wc -l` -gt 1 ] && [ -f submission/submission ]
then
./clear_cache.sh top >> ./logs/clear_cache.log
./check.pl 2>> ./logs/checks.log >> "$TMPF"

View File

@ -0,0 +1 @@
If this file is not present, no check will be performed when user validate their solutions