add check if licence is in the config for maxmind
Some checks failed
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Failing after 30s

This commit is contained in:
Lee 2024-04-21 23:30:58 +01:00
parent 3faf2d3319
commit 2ad5556041

View File

@ -39,6 +39,10 @@ public class MaxMindService {
public MaxMindService(@Value("${maxmind.license}") String maxMindLicense) {
this.maxMindLicense = maxMindLicense;
if (maxMindLicense.isBlank()) {
log.error("The MaxMind license key is not set, please set it in the configuration and try again");
System.exit(1);
}
File databaseFile = loadDatabase();
try {