diff --git a/lib/lxc.sh b/lib/lxc.sh index 3a80b5e..8c5f536 100644 --- a/lib/lxc.sh +++ b/lib/lxc.sh @@ -101,6 +101,7 @@ LXC_STOP () { LXC_RESET () { timeout 30 lxc stop --timeout 15 $LXC_NAME --force 2>/dev/null + swapoff $(cat /proc/swaps | grep "ynh-appci-buster-amd64-stable-test/rootfs/swap_") 2>/dev/null lxc delete $LXC_NAME --force 2>/dev/null }