Fix the GeoIp DB updater

This commit is contained in:
Gabriele C 2020-01-26 22:29:14 +01:00
parent 8fb21c5fb4
commit 0e8da5a556

View File

@ -151,7 +151,7 @@ public class GeoIpService {
// MD5 checksum verification
verifyChecksum(Hashing.md5(), tempFile, expectedChecksum);
Files.copy(tempFile, dataFile);
Files.copy(tempFile, dataFile, StandardCopyOption.REPLACE_EXISTING);
//only set this value to false on success otherwise errors could lead to endless download triggers
logger.info("Successfully downloaded new GEO IP database to " + dataFile);