Fixing error with bad repository path

This commit is contained in:
Martin Stockhammer 2021-12-25 17:38:01 +01:00
parent d3fd08be17
commit 7536a89125
1 changed files with 1 additions and 1 deletions

View File

@ -854,7 +854,7 @@ public class DefaultArchivaConfiguration
Path repoLocation = Paths.get(repoPath);
if (Files.exists(repoLocation) && Files.isDirectory(repoLocation) && !repoPath.endsWith(
"data/repositories/" + repo.getId())) {
"/repositories/" + repo.getId())) {
repo.setLocation(repoPath + "/data/repositories/" + repo.getId());
}
}