Fix swapoff

This commit is contained in:
Josué Tille 2019-12-01 21:08:37 +01:00
parent eaa5281445
commit 5d264da842
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF

View file

@ -83,7 +83,7 @@ ynh_del_swap () {
# Clean the fstab
sed -i "/#Swap added by $app/d" /etc/fstab
# Desactive the swap file
swapoff /swap_$app
swapoff /swap_$app || true
# And remove it
rm /swap_$app
fi