#!/bin/bash # MUA - Mikes Unraid Agent # Remove-Script # Wird vom Unraid-Plugin-Installer bei Deinstallation aufgerufen. set -e echo "=== MUA Remove ===" # 1. Service stoppen + disable if systemctl list-unit-files | grep -q "^mua.service"; then systemctl stop mua.service 2>/dev/null || true systemctl disable mua.service 2>/dev/null || true rm -f /etc/systemd/system/mua.service systemctl daemon-reload echo " Service entfernt" fi # 2. PHP-Helper entfernen if [ -f "/usr/local/bin/unraid-docker-mcp-helper.php" ]; then rm -f /usr/local/bin/unraid-docker-mcp-helper.php echo " Helper entfernt" fi # 3. Plugin-Verzeichnis entfernen if [ -d "/usr/local/plugins/mua" ]; then rm -rf /usr/local/plugins/mua echo " Plugin-Verzeichnis entfernt" fi echo "=== MUA entfernt ==="