From 434e44b69e2cb626cc37b050d0b05c107caabd8f Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Tue, 28 Jan 2025 15:24:28 +0100 Subject: [PATCH] fix: forgejo-runner-service.sh do not fail container does not exist If the daemon cannot be stopped and the goal is to destroy the container, just proceed instead of failing. --- examples/lxc-systemd/forgejo-runner-service.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/lxc-systemd/forgejo-runner-service.sh b/examples/lxc-systemd/forgejo-runner-service.sh index af9e5bd4..ed06e101 100755 --- a/examples/lxc-systemd/forgejo-runner-service.sh +++ b/examples/lxc-systemd/forgejo-runner-service.sh @@ -265,7 +265,7 @@ function daemon() { } function destroy_and_create() { - stop + stop || true lxc-helpers.sh lxc_container_destroy $(lxc_name) lxc_create }