mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Fix removing swap
This commit is contained in:
parent
5e401923d5
commit
7da1c39137
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ create_temp_backup () {
|
|||
|
||||
# Remove swap files to avoid killing the CI with huge snapshots.
|
||||
local swap_file="/var/lib/lxc/$lxc_name/rootfs/swap_$ynh_app_id"
|
||||
if [ -e "$swap_file" ]
|
||||
if sudo test -e "$swap_file"
|
||||
then
|
||||
sudo swapoff "$swap_file"
|
||||
sudo rm "$swap_file"
|
||||
|
|
Loading…
Add table
Reference in a new issue