Prevent invalid webUI from stopping the server (#849)

In case there is no internet connection, it is not possible to verify the webUI files, leading to the server to fail from starting up.
Instead, the existing webUI should just be used
This commit is contained in:
schroda
2024-01-24 23:49:28 +01:00
committed by GitHub
parent fc64f47589
commit c18cf069b1

View File

@@ -258,7 +258,11 @@ object WebInterfaceManager {
logger.info { "setupWebUI: found webUI files - flavor= ${serverConfig.webUIFlavor.value}, version= $currentVersion" }
if (!isLocalWebUIValid(applicationDirs.webUIRoot)) {
doInitialSetup()
try {
doInitialSetup()
} catch (e: Exception) {
logger.warn(e) { "WebUI is invalid and failed to install a valid version, proceeding with invalid version" }
}
return
}