SPB Git

Repository Public

uninstall.sh 496 B 13 lines shellscript

1#!/bin/sh2# Removes mcc-agent from a Linux host. Idempotent.  sudo ./uninstall.sh [--purge]3set -eu4[ "$(id -u)" -eq 0 ] || { echo "run with sudo" >&2; exit 1; }5systemctl disable --now mcc-agent.service 2>/dev/null || true6rm -f /etc/systemd/system/mcc-agent.service /usr/local/bin/mcc-agent7systemctl daemon-reload8if [ "${1:-}" = "--purge" ]; then9  rm -rf /var/lib/mcc-agent10  userdel mcc-agent 2>/dev/null || true11  echo "identity removed: revoke the agent in the Command Center as well"12fi13
Files main
Menu

Theme