#!/bin/sh set -eu BASE_DIR="/usr/local/hitme_plugins/global-autoresponders" CRON_FILE="/etc/cron.d/global-autoresponder" rm -f "$CRON_FILE" if [ "${PURGE_GLOBAL_AUTORESPONDER_DATA:-0}" = "1" ]; then rm -rf "$BASE_DIR" echo "global-autoresponder data purged" else echo "global-autoresponder uninstalled; external data preserved at $BASE_DIR" fi