Merge pull request #121 from YunoHost/swap

Force swap removal
This commit is contained in:
yalh76 2022-04-21 22:40:41 +02:00 committed by GitHub
commit 58cd8c97ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -131,6 +131,8 @@ LXC_RESET () {
LXC_STOP $LXC_NAME
swapoff "$(lxc storage get default source)/containers/$LXC_NAME/rootfs/swap" 2>/dev/null
lxc delete $LXC_NAME --force 2>/dev/null
}