Commit graph

3 commits

Author SHA1 Message Date
KoenigMjr fc9ac8c4de [enh/venv]: Documentation of requirements-runtime.txt 2026-03-05 13:39:20 +01:00
KoenigMjr f3ee19bfad [enh/venv] including "colorama"
including Colorama into requirements-runtime.txt due to minimum required space (~50–100 KB)
removing colorama-installation in install_service.py (obsolete)
2026-03-05 13:39:18 +01:00
KoenigMjr a3f429cbf4 [enh/venv]: feat(install): introduce venv-based runtime setup with proper permissions
Replace the implicit dependency on system-wide Python packages with a
dedicated virtual environment and explicit runtime dependency management.

Changes:
- Create a project-local Python venv during installation
- Install runtime dependencies explicitly via requirements-runtime.txt
- Fix ModuleNotFoundError issues in isolated environments (e.g. requests)
- Detect the actual user when running via sudo (SUDO_USER)
- Assign correct ownership to the BOSWatch directory for venv usage
- Apply setgid (2775) to the log directory so files created with sudo
  remain manageable by the user
- Set explicit permissions for Python scripts and config files

This ensures a reproducible, system-independent installation and prevents
permission issues during runtime and log creation.
2026-03-05 13:33:09 +01:00