feat: add uninstall.sh with dry-run, --help, full cleanup; update install.sh + COMMUNITY_POST.md

This commit is contained in:
Bernd (Hermes Agent)
2026-05-05 21:07:11 +02:00
parent c4c1f344ce
commit a7db2942f6
3 changed files with 187 additions and 12 deletions
+26
View File
@@ -6,9 +6,35 @@
# Nutzung:
# ./install.sh → Normale Installation
# ./install.sh --dry-run → Simulation (zeigt alles an, ändert nichts)
# ./install.sh --help → Diese Hilfe anzeigen
set -euo pipefail
# ── Hilfe ──
if [[ "${1:-}" == "--help" || "${1:-}" == "-h" ]]; then
cat <<'EOF'
Rocket.Chat Plugin — Interaktives Setup für Hermes Agent
Nutzung:
./install.sh Interaktive Installation mit Verbindungstest
./install.sh --dry-run Vorschau: zeigt alle Schritte an, ändert NICHTS
./install.sh --help Diese Hilfe anzeigen
Was install.sh macht:
1. Prüft Voraussetzungen (curl, git, python3)
2. Legt das Plugin-Verzeichnis an
3. Kopiert plugin.yaml, __init__.py, adapter.py
4. Fragt Rocket.Chat-Zugangsdaten interaktiv ab
5. Testet die Verbindung und liest UserID/RoomID aus
6. Schreibt die Konfiguration in ~/.hermes/.env
7. Bietet Neustart von Hermes Gateway an
Deinstallation: ./uninstall.sh
EOF
exit 0
fi
# ── Dry-Run Modus ──
DRY_RUN=false
if [[ "${1:-}" == "--dry-run" ]]; then