Add .deb agent package with systemd timer and interactive setup

This commit is contained in:
2026-07-16 14:28:12 +07:00
parent 21566c1f1e
commit 53a087fbc3
10 changed files with 261 additions and 0 deletions
+18
View File
@@ -24,6 +24,7 @@ info-user/
│ ├── agent.py
│ ├── config.json
│ └── install.sh
├── agent-deb/ # Исходники .deb пакета (dpkg-deb --build)
├── data/ # SQLite БД (создаётся при запуске)
├── docker-compose.yml
├── nginx.conf
@@ -70,6 +71,23 @@ http://localhost
5. **Установить агент** на клиентский ПК (Linux):
### Debian/Ubuntu/Astra Linux (рекомендуется)
```bash
# Установить .deb пакет
sudo dpkg -i info-user-agent_1.0.0_all.deb
# Настроить сервер и токен (интерактивно)
sudo info-user-agent-setup
# Или вручную:
sudo nano /opt/info-user-agent/config.json
```
Либо через репозиторий (добавив его в `/etc/apt/sources.list.d/`).
### Вручную (любой Linux)
```bash
cd agent
sudo bash install.sh