mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Refactor database path handling to use Path object for improved compatibility
This commit is contained in:
parent
9a967805ff
commit
f25ba38eec
1 changed files with 1 additions and 1 deletions
|
|
@ -241,7 +241,7 @@ class Database:
|
|||
self.logger.info(f"✅ Database connection established{'' if not self.readonly else ' in read-only mode'}")
|
||||
|
||||
if match.group("database").startswith("sqlite"):
|
||||
db_path = match.group("path")
|
||||
db_path = Path(match.group("path"))
|
||||
try:
|
||||
current_mode = db_path.stat().st_mode & 0o777
|
||||
if current_mode != 0o660:
|
||||
|
|
|
|||
Loading…
Reference in a new issue