Drop the unused GlobalConfig.data field and remove the remaining YAML config path helpers from PobsyncPaths. Keep HostConfig.config as runtime state for preflight data, and relabel it in the admin so it no longer reads as legacy compatibility storage.
26 lines
532 B
Python
26 lines
532 B
Python
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass
|
|
from pathlib import Path
|
|
|
|
|
|
@dataclass(frozen=True)
|
|
class PobsyncPaths:
|
|
home: Path # usually /opt/pobsync
|
|
|
|
@property
|
|
def state_dir(self) -> Path:
|
|
return self.home / "state"
|
|
|
|
@property
|
|
def locks_dir(self) -> Path:
|
|
return self.state_dir / "locks"
|
|
|
|
@property
|
|
def logs_dir(self) -> Path:
|
|
return self.home / "logs"
|
|
|
|
@property
|
|
def central_log_path(self) -> Path:
|
|
return self.logs_dir / "pobsync.log"
|