1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-06-27 16:35:58 +00:00

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.
This commit is contained in:
Earl Warren 2025-01-28 15:24:28 +01:00
parent 625965c739
commit 434e44b69e
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -265,7 +265,7 @@ function daemon() {
}
function destroy_and_create() {
stop
stop || true
lxc-helpers.sh lxc_container_destroy $(lxc_name)
lxc_create
}