mirror of https://code.forgejo.org/forgejo/runner
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.pull/461/head
parent
625965c739
commit
434e44b69e
|
@ -265,7 +265,7 @@ function daemon() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function destroy_and_create() {
|
function destroy_and_create() {
|
||||||
stop
|
stop || true
|
||||||
lxc-helpers.sh lxc_container_destroy $(lxc_name)
|
lxc-helpers.sh lxc_container_destroy $(lxc_name)
|
||||||
lxc_create
|
lxc_create
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue