mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Fix swapoff before reset
This commit is contained in:
parent
de2170f49e
commit
37bac48c8a
1 changed files with 1 additions and 2 deletions
|
@ -101,7 +101,7 @@ LXC_STOP () {
|
||||||
|
|
||||||
LXC_RESET () {
|
LXC_RESET () {
|
||||||
timeout 30 lxc stop --timeout 15 $LXC_NAME --force 2>/dev/null
|
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
|
swapoff /var/snap/lxd/common/lxd/containers/$LXC_NAME/rootfs/swap_* 2>/dev/null
|
||||||
lxc delete $LXC_NAME --force 2>/dev/null
|
lxc delete $LXC_NAME --force 2>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -178,4 +178,3 @@ RUN_INSIDE_LXC() {
|
||||||
lxc exec $LXC_NAME -- $@
|
lxc exec $LXC_NAME -- $@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue