From 0e8da5a5564d42bae8b766c3ba07ef6ba87a2dc1 Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Sun, 26 Jan 2020 22:29:14 +0100 Subject: [PATCH] Fix the GeoIp DB updater --- src/main/java/fr/xephi/authme/service/GeoIpService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/service/GeoIpService.java b/src/main/java/fr/xephi/authme/service/GeoIpService.java index b4d42d13..091faa4e 100644 --- a/src/main/java/fr/xephi/authme/service/GeoIpService.java +++ b/src/main/java/fr/xephi/authme/service/GeoIpService.java @@ -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);