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:
@@ -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
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user