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
|
git clone https://github.com/dein-user/nextcloud-log-alert.git
|
||||||
cd nextcloud-log-alert
|
cd nextcloud-log-alert
|
||||||
```
|
```
|
||||||
2️⃣ Installationsskript ausführen
|
###2️⃣ Installationsskript ausführen
|
||||||
bash
|
```bash
|
||||||
Kopieren
|
|
||||||
Bearbeiten
|
|
||||||
sudo ./install.sh
|
sudo ./install.sh
|
||||||
|
```
|
||||||
Das Skript erledigt:
|
Das Skript erledigt:
|
||||||
✅ Erstellung des notwendigen Verzeichnisses (/opt/nextcloud_log_alert)
|
- ✅ Erstellung des notwendigen Verzeichnisses (/opt/nextcloud_log_alert)
|
||||||
✅ Einrichtung der Konfigurationsdatei (webhook.conf)
|
- ✅ Einrichtung der Konfigurationsdatei (webhook.conf)
|
||||||
✅ Aktivierung des systemd-Services
|
- ✅ 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:
|
Während der Installation wirst du nach der Webhook-URL für Discord gefragt. Falls du sie später ändern möchtest:
|
||||||
|
|
||||||
bash
|
```bash
|
||||||
Kopieren
|
|
||||||
Bearbeiten
|
|
||||||
sudo nano /opt/nextcloud_log_alert/webhook.conf
|
sudo nano /opt/nextcloud_log_alert/webhook.conf
|
||||||
4️⃣ Service verwalten
|
```
|
||||||
Service-Status überprüfen:
|
|
||||||
|
|
||||||
bash
|
###⚙️ Konfigurationsdateien
|
||||||
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
|
|
||||||
/opt/nextcloud_log_alert/webhook.conf – Speichert die Webhook-URL.
|
/opt/nextcloud_log_alert/webhook.conf – Speichert die Webhook-URL.
|
||||||
/home/data/nextcloud.log – Logdatei von Nextcloud, die überwacht wird.
|
/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:
|
Falls du den Pfad der Nextcloud-Logdatei ändern möchtest, kannst du dies direkt im Python-Skript tun:
|
||||||
|
|
||||||
bash
|
```bash
|
||||||
Kopieren
|
|
||||||
Bearbeiten
|
|
||||||
sudo nano /opt/nextcloud_log_alert/nextcloud_log_alert.py
|
sudo nano /opt/nextcloud_log_alert/nextcloud_log_alert.py
|
||||||
|
```
|
||||||
Ändere die Zeile:
|
Ändere die Zeile:
|
||||||
|
|
||||||
python
|
```python
|
||||||
Kopieren
|
|
||||||
Bearbeiten
|
|
||||||
LOG_FILE = "/home/data/nextcloud.log"
|
LOG_FILE = "/home/data/nextcloud.log"
|
||||||
📜 Lizenz
|
```
|
||||||
|
###📜 Lizenz
|
||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user