Fix error on cli if webroot directory doesnt exist

This commit is contained in:
Lukas Rieger (Blue) 2024-09-15 09:47:31 +02:00
parent ef2962febf
commit f25ebfead3
No known key found for this signature in database
GPG Key ID: AA33883B1BBA03E6

View File

@ -112,6 +112,7 @@ public void updateFiles() throws IOException {
if (zippedWebapp == null) throw new IOException("Failed to open bundled webapp."); if (zippedWebapp == null) throw new IOException("Failed to open bundled webapp.");
// extract zip to webroot // extract zip to webroot
Files.createDirectories(webRoot);
FileHelper.extractZipFile(zippedWebapp, webRoot, StandardCopyOption.REPLACE_EXISTING); FileHelper.extractZipFile(zippedWebapp, webRoot, StandardCopyOption.REPLACE_EXISTING);
// set version in index.html // set version in index.html