From 5a42d81b38e35a58e9855325686dd6910b6bca26 Mon Sep 17 00:00:00 2001 From: continuist Date: Sun, 29 Jun 2025 17:58:12 -0400 Subject: [PATCH] Remove cleanup script to not check for nonexistent forgejo docker container --- scripts/cleanup.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/cleanup.sh b/scripts/cleanup.sh index bba244d..fab95fe 100755 --- a/scripts/cleanup.sh +++ b/scripts/cleanup.sh @@ -18,7 +18,7 @@ REGISTRY_DIR="${REGISTRY_DIR:-/opt/registry}" DRY_RUN="${DRY_RUN:-false}" # Critical infrastructure protection -CRITICAL_CONTAINERS="harbor-core,harbor-db,harbor-jobservice,harbor-log,harbor-portal,nginx,redis,registry,registryctl,trivy-adapter,forgejo-runner" +CRITICAL_CONTAINERS="harbor-core,harbor-db,harbor-jobservice,harbor-log,harbor-portal,nginx,redis,registry,registryctl,trivy-adapter" CRITICAL_IMAGES="goharbor,forgejo-runner" CRITICAL_VOLUMES="harbor" CRITICAL_NETWORKS="harbor" @@ -63,6 +63,13 @@ check_critical_infrastructure() { log_success "All critical infrastructure containers are running" fi + # Check Forgejo runner service + if systemctl is-active --quiet forgejo-runner.service; then + log_success "Forgejo runner service is running" + else + log_warning "Forgejo runner service is not running" + fi + echo }