Refactor install-systemd.sh and update yourchat2.service for improved installation and configuration. Added binary installation to /usr/local/bin, created work directory at /var/lib/yourchat2, and updated user/group settings. Enhanced README to reflect these changes.

This commit is contained in:
Torsten Schulz (local)
2026-03-04 17:23:29 +01:00
parent 5c4ac55f61
commit 91a58855eb
3 changed files with 23 additions and 11 deletions

View File

@@ -111,14 +111,16 @@ Es liegt eine Produktions-nahe Unit-Datei `yourchat2.service` im Projekt.
Zusaetzlich gibt es ein Installationsskript `install-systemd.sh`, das:
- Release-Binary baut
- Binary nach `/usr/local/bin/yourchat2` installiert
- Unit nach `/etc/systemd/system/yourchat2.service` installiert
- Arbeitsverzeichnis `/var/lib/yourchat2` erstellt
- Environment-Datei unter `/etc/yourchat2/yourchat2.env` anlegt (falls nicht vorhanden)
- Service aktiviert und startet
Installation:
```bash
cd ~/Programs/yourchat2
cd /home/tsschulz/Programs/yourchat2
sudo ./install-systemd.sh
```