swapoff before reset

This commit is contained in:
Kay0u 2021-01-28 01:24:53 +01:00
parent 6ea5b2ff88
commit de2170f49e
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -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
}