Skip to content

Commit f25ebfe

Browse files
committed
Fix error on cli if webroot directory doesnt exist
1 parent ef2962f commit f25ebfe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common/src/main/java/de/bluecolored/bluemap/common/WebFilesManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ public void updateFiles() throws IOException {
112112
if (zippedWebapp == null) throw new IOException("Failed to open bundled webapp.");
113113

114114
// extract zip to webroot
115+
Files.createDirectories(webRoot);
115116
FileHelper.extractZipFile(zippedWebapp, webRoot, StandardCopyOption.REPLACE_EXISTING);
116117

117118
// set version in index.html

0 commit comments

Comments
 (0)