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

@ -39,6 +39,10 @@ public class MaxMindService {
public MaxMindService(@Value("${maxmind.license}") String maxMindLicense) { public MaxMindService(@Value("${maxmind.license}") String maxMindLicense) {
this.maxMindLicense = 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(); File databaseFile = loadDatabase();
try { try {