mirror of
https://github.com/open-webui/open-webui
synced 2025-02-16 10:12:37 +00:00
fix: tolerant readonly filesystem for copy favicon to static dir
This commit is contained in:
parent
f2b9a5f5bf
commit
8e9e429a91
@ -310,6 +310,12 @@ if frontend_favicon.exists():
|
|||||||
shutil.copyfile(frontend_favicon, STATIC_DIR / "favicon.png")
|
shutil.copyfile(frontend_favicon, STATIC_DIR / "favicon.png")
|
||||||
except PermissionError:
|
except PermissionError:
|
||||||
logging.error(f"No write permission to {STATIC_DIR / 'favicon.png'}")
|
logging.error(f"No write permission to {STATIC_DIR / 'favicon.png'}")
|
||||||
|
except OSError as e:
|
||||||
|
if e.errno == 30: # Read-only file system
|
||||||
|
logging.error(f"Read-only file system: {STATIC_DIR / 'favicon.png'}")
|
||||||
|
else:
|
||||||
|
logging.error(f"OS error occurred: {e}")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
logging.warning(f"Frontend favicon not found at {frontend_favicon}")
|
logging.warning(f"Frontend favicon not found at {frontend_favicon}")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user