2025-06-01 17:37:45 +12:00

14 lines
313 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
# shellcheck disable=SC1091
source "${AGENT_PATH}/common.sh"
_check_required_env_vars "SERVER" "SERVICE" "GITEA_RUNNER_DIRECTORY"
# Call uninstall script first
./uninstall.sh
echo "Removing ${GITEA_RUNNER_DIRECTORY}"
rm -rf "${GITEA_RUNNER_DIRECTORY}"
echo "Destroyed ${SERVICE}"