Rerun primary mirror scan after one day

Signed-off-by: Adrian Reber <adrian@lisas.de>
This commit is contained in:
Adrian Reber 2022-01-11 17:48:46 +01:00
parent 41b2d49e3c
commit c6b8f53f85
No known key found for this signature in database
GPG key ID: 82C9378ED3C4906A

View file

@ -66,11 +66,7 @@ else
fi
# Rerun scan after 24 hours
if [ "$FILEDATE" -lt $(expr $CURDATE - 86400) ]; then
LASTRUN=0
fi
if [ "$LASTRUN" -gt "$FILEDATE" ]; then
if [ "$LASTRUN" -gt "$FILEDATE" ] && [ "$LASTRUN" -gt $(expr $CURDATE - 86400) ]; then
# no changes on the master mirror
# abort
exit 0