Files
global-autoresponder/scripts/uninstall.sh
T
2026-07-04 15:16:50 +02:00

15 lines
353 B
Bash
Executable File

#!/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