last tidying up

This commit is contained in:
buenosairesam
2026-01-20 06:15:59 -03:00
parent a9d1e135cb
commit 6b9a228d9a
4 changed files with 9 additions and 1 deletions

View File

@@ -170,8 +170,16 @@ def build_managed(output_dir: Path, cfg_name: str, config: dict):
if copy_repo(source, target):
log.info(f" {repo_name}/")
# Copy ctrl from cfg/<room>/ctrl/
room_cfg = SPR_ROOT / "cfg" / cfg_name
# Docker files from room root -> managed root
for item in room_cfg.iterdir():
if item.is_file() and (
item.name.startswith("Dockerfile") or item.name.startswith("docker-compose")
):
copy_path(item, managed_dir / item.name)
# Scripts from ctrl/ -> managed/ctrl/
room_ctrl = room_cfg / "ctrl"
if room_ctrl.exists():
ctrl_dir = managed_dir / "ctrl"