From 157f764079cd2513ee132af83e7631b7a8690897 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 12 Jan 2021 02:27:38 +0100 Subject: [PATCH] Add --force during LXC_RESET because some containers don't want to be stopped for some reasons... --- lib/lxc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lxc.sh b/lib/lxc.sh index b3f2adf..f5450a1 100644 --- a/lib/lxc.sh +++ b/lib/lxc.sh @@ -94,8 +94,8 @@ LXC_STOP () { } LXC_RESET () { - timeout 30 lxc stop --timeout 15 $LXC_NAME 2>/dev/null - lxc delete $LXC_NAME 2>/dev/null + timeout 30 lxc stop --timeout 15 $LXC_NAME --force 2>/dev/null + lxc delete $LXC_NAME --force 2>/dev/null }