Commit 31ac7e1c by hy

.

parent 24986356
......@@ -103,7 +103,6 @@ public class LicenseManager implements InitializingBean {
Files.createDirectories(dir);
Path licensePath = dir.resolve(Constants.LICENSE_FILE_NAME);
if (Files.isRegularFile(licensePath) && Files.exists(licensePath)) {
uninstall();
install(licensePath.toString());
}
}
......
......@@ -34,7 +34,6 @@ public class LicenseInstallationServlet extends HttpServlet {
Path dest = Paths.get(properties.getLocation(), Constants.LICENSE_FILE_NAME).toAbsolutePath().normalize();
Files.copy(is, dest, StandardCopyOption.REPLACE_EXISTING);
this.licenseManager.uninstall();
this.licenseManager.install(dest.toString());
resp.setStatus(HttpStatus.OK.value());
resp.setContentType(Constants.TEXT_PLAIN_MEDIA_TYPE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment