Fix a bug preventing the installation of the WebUI backend

This commit is contained in:
cmdr2 2025-02-04 17:57:08 +05:30
parent 07105d7cfd
commit 964aef6bc3

View File

@ -101,14 +101,14 @@ def start_backend():
config = getConfig()
backend_config = config.get("backend_config", {})
env = dict(os.environ)
env.update(get_env())
log.info(f"WebUI backend dir: {BACKEND_DIR}")
log.info(f"Expected WebUI backend dir: {BACKEND_DIR}")
if not os.path.exists(BACKEND_DIR):
install_backend()
env = dict(os.environ)
env.update(get_env())
was_still_installing = not is_installed()
if backend_config.get("auto_update", True):