README.md aktualisiert
This commit is contained in:
56
README.md
56
README.md
@ -19,58 +19,38 @@ Es nutzt ein Python-Skript, das über einen systemd-Service automatisch gestarte
|
||||
git clone https://github.com/dein-user/nextcloud-log-alert.git
|
||||
cd nextcloud-log-alert
|
||||
```
|
||||
2️⃣ Installationsskript ausführen
|
||||
bash
|
||||
Kopieren
|
||||
Bearbeiten
|
||||
###2️⃣ Installationsskript ausführen
|
||||
```bash
|
||||
sudo ./install.sh
|
||||
```
|
||||
Das Skript erledigt:
|
||||
✅ Erstellung des notwendigen Verzeichnisses (/opt/nextcloud_log_alert)
|
||||
✅ Einrichtung der Konfigurationsdatei (webhook.conf)
|
||||
✅ Aktivierung des systemd-Services
|
||||
- ✅ Erstellung des notwendigen Verzeichnisses (/opt/nextcloud_log_alert)
|
||||
- ✅ Einrichtung der Konfigurationsdatei (webhook.conf)
|
||||
- ✅ Aktivierung des systemd-Services
|
||||
|
||||
3️⃣ Discord Webhook hinterlegen
|
||||
###3️⃣ Discord Webhook hinterlegen
|
||||
Während der Installation wirst du nach der Webhook-URL für Discord gefragt. Falls du sie später ändern möchtest:
|
||||
|
||||
bash
|
||||
Kopieren
|
||||
Bearbeiten
|
||||
```bash
|
||||
|
||||
sudo nano /opt/nextcloud_log_alert/webhook.conf
|
||||
4️⃣ Service verwalten
|
||||
Service-Status überprüfen:
|
||||
```
|
||||
|
||||
bash
|
||||
Kopieren
|
||||
Bearbeiten
|
||||
sudo systemctl status nextcloud_log_alert
|
||||
Service stoppen:
|
||||
|
||||
bash
|
||||
Kopieren
|
||||
Bearbeiten
|
||||
sudo systemctl stop nextcloud_log_alert
|
||||
Service starten:
|
||||
|
||||
bash
|
||||
Kopieren
|
||||
Bearbeiten
|
||||
sudo systemctl start nextcloud_log_alert
|
||||
⚙️ Konfigurationsdateien
|
||||
###⚙️ Konfigurationsdateien
|
||||
/opt/nextcloud_log_alert/webhook.conf – Speichert die Webhook-URL.
|
||||
/home/data/nextcloud.log – Logdatei von Nextcloud, die überwacht wird.
|
||||
🛠 Anpassungen
|
||||
###🛠 Anpassungen
|
||||
Falls du den Pfad der Nextcloud-Logdatei ändern möchtest, kannst du dies direkt im Python-Skript tun:
|
||||
|
||||
bash
|
||||
Kopieren
|
||||
Bearbeiten
|
||||
```bash
|
||||
sudo nano /opt/nextcloud_log_alert/nextcloud_log_alert.py
|
||||
```
|
||||
Ändere die Zeile:
|
||||
|
||||
python
|
||||
Kopieren
|
||||
Bearbeiten
|
||||
```python
|
||||
|
||||
LOG_FILE = "/home/data/nextcloud.log"
|
||||
📜 Lizenz
|
||||
```
|
||||
###📜 Lizenz
|
||||
MIT License
|
||||
|
||||
|
Reference in New Issue
Block a user