Skip to content
Snippets Groups Projects
Commit 74e772ec authored by Daniel's avatar Daniel
Browse files

ENH: Only read *.conf files from conf.d directories.

parent 274ef2df
No related branches found
No related tags found
No related merge requests found
......@@ -150,7 +150,10 @@ public class ServerProperties extends Properties {
String[] confFiles = confDir.list();
Arrays.sort(confFiles, Comparator.naturalOrder());
for (String confFile : confFiles) {
loadConfigFile(serverProperties, new File(confDir, confFile));
// prevent backup files from being read
if (confFiles.endsWith(".conf")) {
loadConfigFile(serverProperties, new File(confDir, confFile));
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment